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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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 ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.