Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Raj007
Helper III
Helper III

can we show text value like "N/A" in the calculated %column

Hi All,

Thank you so much for your time. I have this scenario where i calculate the %value with the numerator which is a measure and the denominator which is another measure ...something like below
KRI%= 100 - (KRI_SUM/ALL_BAND1) * 100
1).KRI_SUM - This is the numerator which is a calculated measure
2).ALL_BAND1 - This is the denominator which is a calculated measure
I have a field in my dataset like BandType which has 1,2,3,4 (just 4 values in it)
my % values should get calculated only for the BandType=1 (when I select 2,3,4 in the slicer the %value shoud show "N/A")
can we show N/A - i tried to but i still seee the BLANK in 
any suggestiions for the best approach....

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Raj007 ,

 

Create a independent slicer table and then create a measure as below.

measure = IF(SELECTEDVALUE('slicer'[type]=1),[%value],"N/A")

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Raj007 , Can share what you have done. This need a column and column as of now can not take slicer value. So I doubt that.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hi Amit, thanks for checking
I use the slicer to select BandType which has 1 2 3 4 values - Measure is KPI% which is shown in gauge dial
say the scenario is to show the %value in gauge dial for the BandType=1 when BandType is 2,3,4 then dont calculate and show N/A

 

Hi @Raj007 ,

 

Create a independent slicer table and then create a measure as below.

measure = IF(SELECTEDVALUE('slicer'[type]=1),[%value],"N/A")

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thank you Jay - I had to just use it in variable like
Testing=
VAR Test=calculation
return 
if(isblank(Test),"N/A",Test)

This does not work in Gauge it is still showing "Blank" - it shows N/A in card but not in guage

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.