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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.