web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Rename null pie items
Power Apps
Answered

Rename null pie items

(2) ShareShare
ReportReport
Posted on by 355

Hi,

 

I'm adding some very simple charts/pies etc. And something that is a real pain is where a grouped field has a null value and means the pie display is "Items(2)" and I'd rather show "Blank".  Is there a easy way to manage this?

 

AddColumns(GroupBy(AddColumns('Risk Trial - PowerApp', "TowerList", 'Impacted Tower rpt'), "TowerList", "GroupData"), "CountByTower", CountRows(GroupData))

 

Coopedup_0-1608461638861.png

 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Coopedup 

     

    In the record with blank, make the column that turns into the Series label, explicitly have the string "Blank" as in the below example:

     

    expliciit_blank_87235.png

     

    Other than this, we do not know another way which would not result in the same thing you are seeing. You can see non-working examples attempted below:

     

    NON WORKING EXAMPLES:

     

    Blank Series Label:

     

    nonworking01.png

     

    Blank Record entirely:

     

    nonworking02.png

     

    Interestingly, a blank value for something that is not the series label, may still work for your use case  (however it is not recommended because it shows the series label only correctly, but nothing in the chart - but if it is what you want, it can be done this way)-  - for example: 

     

    workingseriesblank.png

     

     

    In case someone else in this forum knows about another interesting way, please share it, but this is only way we know of right now.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Coopedup 

    Sure thing...change your Items Property to the following formula:

    AddColumns(
     GroupBy(
     AddColumns('Risk Trial - PowerApp', "TowerList", Coalesce('Impacted Tower rpt', "Blank")), 
     "TowerList", 
     "GroupData"
     ), 
     "CountByTower", CountRows(GroupData)
    )

     

    I hope this is helpful for you. 

  • Coopedup Profile Picture
    355 on at

    That is ace....I'd seen the Coalesce but really couldn't figure out where to place it. Excellent help!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Coopedup 

    Yes...Coalesce is a HIGHLY valuable function.  I don't go a day without it!  Personally, I just don't like the redundancy of things like If(IsBlank(something), "somethingElse", something)  - so much clearer as Coalesce(something, "somethingElse") 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard