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
Andreas-Harlak
Frequent Visitor

Diff calculation between two mutiple selected filters

Hello,

I need some help.

I want to visual the difference between two multiple selected filters in a matrix. It is possible to create a measure for this. 

AndreasHarlak_0-1676624601690.png

 

I hope somebody can help me to solve this situation. Thanks a lot

2 REPLIES 2
amitchandak
Super User
Super User

@Andreas-Harlak , Try measure like

 

Date diff =
var _max = minx(allselected(Date), Date[GJ])
var _min = maxx(allselected(Date), Date[GJ])
return
calculate(sum(Table[Value]), Filter(Date,Date[GJ] =_max ) ) -calculate(sum(Table[Value]), Filter(Date,Date[GJ] =_min ) )

@amitchandak 

Thanks for your reply. I write you from my private account now because the other is my working account.

I think your suggestions does not work the filters are not connected with a date format it is a text type. The reason for this is we don´t have a calendar year the company year is different to it, so I created this text type and then the filters.

 

Thank you

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.