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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TaroGulati
Helper III
Helper III

Calculation item issue

Hi guys,

 

I am having some difficulty with format of my measures using calculation items. 

 

I have created a calculation item using selected measure function. issue is that it is implementing format on all the measures present in the visual. 

 

This is the table which i use to define the format:

 

TaroGulati_0-1649675521828.png

This is my simple measure:

 

TaroGulati_1-1649675549479.png

This the expression and format that i inserted in the caluclation item:

TaroGulati_2-1649675595709.png

This is the result:

 

TaroGulati_3-1649675615871.png

Value 1 and value 2 both are same measures. calculation item is applying format on both measures but i want it only on one measure. 

 

Is there any ways to exclude the specific measure inside calculation item?

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can do a check inside both the calculation item expression and the format string using ISSELECTEDMEASURE or SELECTEDMEASURENAME, then take whatever action is appropriate.

View solution in original post

2 REPLIES 2
TaroGulati
Helper III
Helper III

@johnt75 thanks

johnt75
Super User
Super User

You can do a check inside both the calculation item expression and the format string using ISSELECTEDMEASURE or SELECTEDMEASURENAME, then take whatever action is appropriate.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors