Forum Discussion

BalajiDev30's avatar
BalajiDev30
Frequent Visitor
6 years ago

creating two pie chart with dynamic date comparison

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

  • 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-calculations/

     

    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.

  • Anonymous's avatar
    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

  • hi 

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

    can you send ypur pbix file