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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Columns not used in a table or visualization

Hi,

I am trying to create a measure to calcualte something based on what columns are used in a visualization. for example if measure A and B are used in a table as columns. Isfiltered() seems fine to use if I want to check if something is being used but how to check if other measures are not used, specifically all the rest? So, as an example I want to write an IF so that if measure A is used in the table to calculate formula A, If the measure B is used to calculate formula B, If A and B are used to calculate Formula A and If anything else is used in the table, even if Measure A or B is used, to return 0 or null. 

 

Of course there are some filters on the page too which should not affect the results.

 

(Additional information) : 

This is what I want to make it work

Measure AMeasure BOther MeasuresResult
TrueFalseFalseFormula A
FalseTrueFalseFormula B
TrueTrueFalseFormula A
FaleFalseFalseBlank
FaleFalseTrueBlank
TrueFalseTrueBlank
FalseTrueTrueBlank
TrueTrueTrueBlank

 

Thank you in advance

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try.

Dynamic Measure =
IF (
    ISINSCOPE ( Table1[Measure A] ),
    [Formula A],
    IF ( ISINSCOPE ( Table1[Measure B] ), [Formula B], BLANK () )
)

If I have misunderstood your meaning , please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Well you are on track but you made me realize I have to add more detail to the question. I will add them in the main text and will explain here now too: The main problem is that If Measure A is used as a column and then another measure is also added as a column I want it to return blank. So the result is like this:

 

Measure AMeasure BOther MeasuresResult
TrueFalseFalseFormula A
FalseTrueFalseFormula B
TrueTrueFalseFormula A
FaleFalseFalseBlank
FaleFalseTrueBlank
TrueFalseTrueBlank
FalseTrueTrueBlank
TrueTrueTrueBlank

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.