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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
isomihai72
Regular Visitor

DAX - in a matrix visual to count by week (columns) and category (rows)

Hi,

 

I have a visual line and clustered chart as below (measures for periodic and cumulative: current (or plan), actual,forecast.)

 

isomihai72_0-1736700092764.png

 

I would like to have in a table or matrix visual: rows: (measures) current periodic, current cumulative,actual per,actual **bleep**, forecast per,forecast **bleep**. Columns to be week (as it is above,x-axis...)

---------------------------------------------------------------------

I have a matrix below:

isomihai72_1-1736700315570.png

 

I generate a table "Table_SortOrder" (Enter Data)

isomihai72_2-1736700408384.png

Data model:

isomihai72_3-1736700521255.png

DAX for 

Dynamic Categories =
    SWITCH(
        TRUE(),
        SELECTEDVALUE('Table_SortOrder'[Category]) = "Current Periodic", [Current Periodic],
        SELECTEDVALUE('Table_SortOrder'[Category]) = "Actual Periodic", [Actual Periodic],
    SELECTEDVALUE('Table_SortOrder'[Category]) = "Forecast Periodic", [Forecast Periodic],
        SELECTEDVALUE('Table_SortOrder'[Category]) = "Current Cumulative", [Current Cumulative],
    SELECTEDVALUE('Table_SortOrder'[Category]) = "Actual Cumulative", [Actual Cumulative],
    SELECTEDVALUE('Table_SortOrder'[Category]) = "Forecast Cumulative", [Forecast Cumulative]
    )
 
 My problem is that the matrix does not ends as line and clustered column chart (2023-16 - matrix; 2023-18 - line chart)
isomihai72_4-1736700738085.png

 

Any suggestion?

 

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @isomihai72 ,

 

Based on your description, I created simple data and you can check to see if a filter has been added for the matrix visual.

vlinhuizhmsft_0-1736922662152.png

 

If the problem persists, could you provide a link to a .pbix file that removes the sensitive data, which could help the problem to be resolved more quickly?

 

Best Regards,
Zhu

 

If there is any 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

Hi @isomihai72 ,

 

Based on your description, I created simple data and you can check to see if a filter has been added for the matrix visual.

vlinhuizhmsft_0-1736922662152.png

 

If the problem persists, could you provide a link to a .pbix file that removes the sensitive data, which could help the problem to be resolved more quickly?

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Hi,

 

thank you for your feedback.

Please see in the posts my feedback.

For my example (containing Current periodic & cumulative in the matrix) it does not works, if I reduced the finish slicer's date...

Best Regards.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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