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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a data below.
| Item | Date | Qty |
| A | 2/1/2024 | 2 |
| A | 4/1/2024 | 5 |
| A | 2/1/2024 | 2 |
| B | 2/1/2024 | 4 |
| B | 2/1/2024 | 2 |
| B | 12/31/2024 | 1 |
How to make a matrix visual in PowerBI and use DAX to calculate the sum of qty by each quarter like below output?
Solved! Go to Solution.
Hi @pang22, you need to create a "Date Table" with quarter column (you can learn more about it here, you'll find plenty templates online). Then connect Date Table with your fact table (using date column) and drag and drop requested columns to the canvas: Item to Rows, Quarter (from Date Table) to columns and Qty to Values section.
Good luck! 🙂
I’d like to acknowledge the valuable input provided by the @Sergii24 . Their initial ideas were instrumental in guiding my approach, and here's a little detail I'd like to add.
Hi @pang22 ,
If you encounter scenarios where blank values are displayed and Q3 is not displayed:
You can create the following measure to put into Values:
Value =
SUM('Table'[Qty]) + 0
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I’d like to acknowledge the valuable input provided by the @Sergii24 . Their initial ideas were instrumental in guiding my approach, and here's a little detail I'd like to add.
Hi @pang22 ,
If you encounter scenarios where blank values are displayed and Q3 is not displayed:
You can create the following measure to put into Values:
Value =
SUM('Table'[Qty]) + 0
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pang22, you need to create a "Date Table" with quarter column (you can learn more about it here, you'll find plenty templates online). Then connect Date Table with your fact table (using date column) and drag and drop requested columns to the canvas: Item to Rows, Quarter (from Date Table) to columns and Qty to Values section.
Good luck! 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 41 | |
| 21 | |
| 18 |