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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BalajiDev30
Frequent Visitor

creating two pie chart with dynamic date comparison

ApplicationUsage.png

Above is the two pie chart with static date comparison..but now i want to compare datewise i.e when i change the month 4 and year 2020 the first pie chart should be  4th month 2020 and second chart should be 3rd month 2020

3 REPLIES 3
eidev12
New Member

hi 

I am facing issue to how to bind category table comparison with last year 

can you send ypur pbix file 

Anonymous
Not applicable

Hi @BalajiDev30,

As parry2k said, please confirm you have a calendar table first. Then you can use it to create a slicer and write measure formulas based on its selection and use on the visual level filter to filter records. (notice: this slicer should not has a relationship to raw table records)

If you confused about how to do it, please share a sample pbix file with some dummy data then you can test to coding formula on it. 

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

parry2k
Super User
Super User

@BalajiDev30 As a best practice, add date dimension in your model and use it for and time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools.

https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-ca...

 

And once you have date dimension, you can create measure for both the piecharts based on the filter from date table.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.