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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors