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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.