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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
pang22
Helper III
Helper III

make a matrix visual and sum qty by quarter in PowerBI

Hello,

 

I have a data below.

ItemDateQty
A2/1/20242
A4/1/20245
A2/1/20242
B2/1/20244
B2/1/20242
B12/31/20241

 

How to make a matrix visual in PowerBI and use DAX to calculate the sum of qty by each quarter like below output?

pang22_0-1714470098186.png

 

2 ACCEPTED SOLUTIONS
Sergii24
Super User
Super User

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! 🙂

View solution in original post

Anonymous
Not applicable

 

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:

vyangliumsft_0-1714544683920.png

You can create the following measure to put into Values:

Value =
    SUM('Table'[Qty]) + 0

vyangliumsft_1-1714544683925.png

 

 

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.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

 

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:

vyangliumsft_0-1714544683920.png

You can create the following measure to put into Values:

Value =
    SUM('Table'[Qty]) + 0

vyangliumsft_1-1714544683925.png

 

 

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.

Sergii24
Super User
Super User

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! 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors