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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Compare differrent time periods in same Chart by weeks

Hi Guys,

 

Struggle a bit with this,

 

Read various posts but none that handle the exact issue:

I need in a clustered column chart to show sales per week (x-axis)

One measure that shows Actuals

One Measure that shows compare period

Two slicers being able to set date filters on both actual period and compare period

Should be able to show both values if the time period selected in both slicers is within the same time period or completly different.

 

Example:

Slicer Actual date: 1-1-2020 to 1-2-2020

Slicer Compare date: 1-1-2020 to 15-1-2020

 

Or:

 

Slicer Actual date: 1-1-2020 to 1-2-2020

Slicer Compare date: 2-2-2020 to 28-2-2020

 

I have offcause a date table but as well tried with a Compare date table and UseRelationship function.

 

Any suggestions?

 

Data example

Sales DateSales
1-1-2020300
20-1-2020700
5-2-2020500
27-2-2020900
25-2-2020300
10-1-2020400
8-1-2020200
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You need an independent date table for that

 

How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg

or

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You need an independent date table for that

 

How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg

or

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

With some tweeking your first link helped me achive my desired result - Thanks a lot! 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.