cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bcdobbs
Super User
Super User

Access extended properties of a selected measure in a calc group.

In a similar way to how we have SELECTEDMEASURENAME() and SELECTEDMEASUREFORMATSTRING() is there a way to access the extended properties of a measure from a calculation group. I'm using a calc group to apply formats dynamically and can exclude measures by name or using SEARCH but would like to be able to set an extended property of "IGNORE FOR CALC GROUP" or something similar.

 

Thanks


Ben



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
2 REPLIES 2
bcdobbs
Super User
Super User

Thanks for the reply.

 

Wondering if we're talking about the same thing here...

bcdobbs_0-1675762722449.png

 

bcdobbs_1-1675763049230.png

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
jaweher899
Impactful Individual
Impactful Individual

it is possible to access the extended properties of a measure from a calculation group. You can use the DAX function CALCULATE(SELECTEDMEASURE(), 'Measure Table'[Extended Property]=value) to access the extended property value of the selected measure. Replace 'Measure Table' with your measure table name, and 'Extended Property' with the name of the column that contains your extended property, and 'value' with the desired value of the extended property.

You can then use this formula in a calculated column or measure to conditionally include or exclude the measure from your calculation group based on its extended property value.

Helpful resources

Announcements
March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.