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
Pikachu-Power
Post Prodigy
Post Prodigy

ISINSCOPE in matrix question

Hello,

 

for a matrix i want to vanish one row and just want to show the total. C i calculateted as A - B: 

 

1.PNG

 

I tried something like

 

Measure =

IF ( ISINSCOPE ( TABLE ( Column2 ) ) && MAX ( TABLE ( Column2 ) ) = "C",

    BLANK ( ),

    [value] )

 

where value is a measure who creates a new table with UNION and the difference C = A - B. 

 

Result is that Row C vanish completely. Some ideas where the mistake is?

 

Many thanks.

 

Best regards

Power Pikachu

 

PS: Normally we have 12 month and a total. I unintentionally used December as a total. Hope it doesnt matter 🙂

2 REPLIES 2
amitchandak
Super User
Super User

@Pikachu-Power , You have to try measure like

 


Measure =

IF ( ISINSCOPE ( TABLE[Column2] ) && MAX ( TABLE[Column2 ] ) = "C",

calculate([Measure],TABLE[Column2 ] ="A") - calculate([Measure],TABLE[Column2 ] ="B")

[Measure] )

Hello,

 

what is [Measure] in your DAX code? My created Measure or maybe [value]? I missing something like BLANK( ). Normally the difference is a little more complicated with dummy values and UNION. I dont know if if i can pull out from [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.