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
Anonymous
Not applicable

Month on month comparion

Hi ,

 

I need below loke this:

 

Filters i want to change dynamically.

 

Capture-12.PNG

 

Regards,

9 REPLIES 9
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

If you've fixed the issue on your own please kindly share your solution. If the above posts help, please kindly mark it as a solution to help others find it more quickly. Thanks!


Best Regards,
Yingjie Li

Anonymous
Not applicable

here is an example 

 

PBIX

v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Currently in power bi desktop dynamic slicers are not supported, but you can try to use 'Edit interactions' to disable the corresponging interaction between slicers and tables.

edit interactions.png

Refer this document: Change how visuals interact in a Power BI report 

Sample file: Month on month comparion.pbix 

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , you need to have two date dimensions, both independent, or both connected to the same date. 

In place of date range take a month slicer from your date table

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

calendar :https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441

 

Anonymous
Not applicable

Hi,

Same Date Column:

Month 

June

july

 

Regards,

venkat

@Anonymous , I think that article is for the same date.

 

 

Anonymous
Not applicable

Hi ,

Same.

 

Regards

@Anonymous , Can you share sample data and sample output in table format?

Mark me @ while sharing

@Anonymous ,

, Try like. You need two date table, both have month year in that. Keep slicer from each one .

 

measure1 =
var _min = minX(allselected(Date,Date[Date]))
var _max = manX(allselected(Date,Date[Date]))
return
calculate(sum(Table[Sales]), filter(Table,Table[Date]>=_min && Table[Date]<=_max))

 

Use the crossfilter is Date is joined and active.

measure2 =
var _min = minX(allselected(Date1,Date1[Date]))
var _max = manX(allselected(Date1,Date1[Date]))
return
calculate(sum(Table[Sales]), filter(Table,Table[Date]>=_min && Table[Date]<=_max))
//calculate(sum(Table[Sales]), filter(Table,Table[Date]>=_min && Table[Date]<=_max), crossfilter(Table[Date],Date[Date],none))

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.