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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Tevon713
Helper V
Helper V

Find difference of selected dates for measure calculation

Hello all,

 

I need help in trying to find difference in a measure when user select 2 date or year/month. Just getting blank, not sure if the formula or can you find difference in a measure.

 

Please help and advise. Thanks.

 

Below is link to sample pbix file.

https://www.dropbox.com/s/yq7os1gkf9e6y0s/Find%20difference%20of%20selected%20dates.pbix?dl=0

 

Difference measure

 

Tevon713_0-1654635321568.png

 

Matrix showing Blank for Difference:

 

Tevon713_1-1654635402718.png

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Download the PBI file from here.  The answer is 0 in the Diff column because even in a different year, the Region and Site name combination changes.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Download the PBI file from here.  The answer is 0 in the Diff column because even in a different year, the Region and Site name combination changes.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Tevon713 , This need at least one independent date table

 

How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.