Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
Please help me creating DAX measures to showcase the below request.
Create a matrix chart to show the year over year comparison for above two questions
Here is a rough data for reference.
| Product | Date | Quantity | Cost |
| USA | 2025-02-24 | 974 | 97.67 |
| Brazil | 2023-11-30 | 257 | 99.44 |
| Germany | 2024-12-24 | 892 | 46.83 |
| India | 2024-04-05 | 774 | 86.16 |
| USA | 2024-11-21 | 619 | 73.81 |
| USA | 2023-10-15 | 527 | 13.08 |
| India | 2024-06-28 | 999 | 20.5 |
| USA | 2025-01-17 | 539 | 76.46 |
| India | 2025-01-01 | 395 | 43.27 |
| USA | 2024-10-27 | 331 | 97.85 |
| Japan | 2025-02-09 | 198 | 62.77 |
| India | 2024-08-11 | 745 | 53.3 |
| Germany | 2025-03-13 | 861 | 51.2 |
| USA | 2024-06-01 | 772 | 35.73 |
| Germany | 2024-10-26 | 364 | 55.37 |
| Germany | 2023-10-22 | 492 | 50.34 |
| Brazil | 2025-03-28 | 622 | 46.99 |
| India | 2024-12-07 | 418 | 28.54 |
| Brazil | 2025-03-07 | 539 | 58.89 |
| India | 2023-07-26 | 707 | 89.49 |
Please attach the power bi file that you worked on to apply the DAX measures with my column names. Thanks a ton!
Solved! Go to Solution.
Hi @royalty123,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @lbendlin, @danextian, for your inputs on this issue.
After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.
Date Table Dax:
CalendarTable = ADDCOLUMNS(
CALENDAR(MIN(Data[Date]), MAX(Data[Date])),
"Year", YEAR([Date]),
"Month", FORMAT([Date], "MMM")
)
Previous Year’s Cost Measure:
Sales Growth from Quantity Increase Measure:
I am also including .pbix file for your better understanding, please have a look into it:
I hope this could resolve your issue, if you need any further assistance, feel free to reach out. If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @royalty123,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @lbendlin, @danextian, for your inputs on this issue.
After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.
Date Table Dax:
CalendarTable = ADDCOLUMNS(
CALENDAR(MIN(Data[Date]), MAX(Data[Date])),
"Year", YEAR([Date]),
"Month", FORMAT([Date], "MMM")
)
Previous Year’s Cost Measure:
Sales Growth from Quantity Increase Measure:
I am also including .pbix file for your better understanding, please have a look into it:
I hope this could resolve your issue, if you need any further assistance, feel free to reach out. If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @royalty123,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @royalty123,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @royalty123,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
No need for measures. You can visualize this without code.
Hi @danextian : I don't have any power bi file. I just had an excel file. I shared the table along with my question. Thank you!
You seem to have forgotten the Power BI file. Please post the link to file stored in the cloud. Only superusers, MVPs and admins can attach files.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 40 | |
| 33 | |
| 26 |