Forum Discussion

tonton's avatar
tonton
Frequent Visitor
5 years ago
Solved

How to show data with zero count in table when filtering date

I have a date slider in my dashboard.   And I have a table visual that contains all products that were sold for a specific date range. (Ex. Products A, B, C, D, E, F).   Now when I  do not filter...
  • parry2k's avatar
    5 years ago

    tonton I added a date dimension in your model and linked it with your sales table on the date. Added a measure (I think called Count) and on the slicer used Date from the date dimension.

     

    As a best practice, you always have a star schema in your model and also must add a date dimension in the model for any date-related calculations.

     

    Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to 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.