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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sima_ue031
Helper I
Helper I

Custom matrix

Hello, 

 

I need to create a matrix in power bi using Dax like on the photo that I uploaded. 
I have a one-fact table with InvoiceNo, ItemNo, CustomerNo

In rows, I would like to put the number of Invoices that have at least one selected item from the slicer. From 1 to 12, and if we have more than 12, I need to put in >12. 
In columns, I have the total number of invoices in 2023. In the same order from 1 to 12 and more than 12 (>12.)
In the intersection of rows and columns, I would put distinct numbers of CustomerNo.


Anybody can help me to write all the required measures?


chatgpt.jpg

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @sima_ue031 ,

 

check this to take an idea how you could customise it 

https://youtu.be/PI52ckgezzA?si=BLuX6A6YGkny4-p8

https://youtu.be/J4317R5BvsA?si=HbGshy4_X990-Ppk

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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