Forum Discussion
Measure error to avoid blank pie chart "The function SUM cannot with values of type String"
Yep that makes sense. In that case you could also try this:
Measure = IF(ISBLANK(SelectedValue('B-Base Planned'[Expense])), "No Data Available", "")
Thank you so much for your help I'm so colse!!
The visual is showing up saying "No Data Available". Now all I need is for it to disappear when there is data. I tested this by updating my linked speadsheet with some numbers in the 'Planned Spending' rows. When I hit refresh my pie chart appeared, but the "No Data Available" card is still on top. How do I make it automatically go away when there is data?
- d_m_LNK1 year ago
Super User
That sounds like a separate issue than the measure. It sounds like you are stacking two different visuals on top of one another? This might be a good post for a new thread maybe. If the measure is fixed can you mark the solution and post a new thread about stacking visuals when blank?
- Anonymous1 year agoNot applicable
Hi jessmc64 ,
Thank you d_m_LNK for the accurate response!
Thank you for your question! To ensure that the "No Data Available" message disappears automatically when data is present, you may use the following measure :
Measure = IF( ISBLANK(SUM('B-Base Planned'[Planned])), "No Data Available",BLANK() )
ion.
Thank you for being a valued member in Microsoft Fabric Community Forum!
If it did not resolve your query,As d_m_LNK suggested please raise new thread about stacking visuals.As measure is fixed ,please mark the solution as accepted.- jessmc641 year agoNew Member
The card now says "BLANK" instead of "No Data Available" and did not disppear when data became available unfortnuately
- Anonymous1 year agoNot applicable
Hi jessmc64 ,
Thank you for your patience!
Since the measure is returning blank,try using the below query
Measure =
VAR PlannedSpending = SUM('B-Base Planned'[Planned])
RETURN IF(NOT ISBLANK(PlannedSpending), BLANK(), "No Data Available")Also,check if the card visual have a "Show blank as" option set to display text (like "BLANK").
I hope this helps.If so,consider accepting it as solution.