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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Vemul
Helper I
Helper I

Handling Matrix display for large number of Measures

Hi Folks, 

 

hope I can get some help, 

 

I am working on a item count table that need total count information update daily. 

data has multiple Groups ( 99AP, 99BB, 99NN) and sections (AMB,CLD,DRG).  looing for solution how to manage desired output in Matrix table with golbal or simple mesure/s

example below table has 3 owners have common areas need to get count of slot per day,  previously I am writing measure for owner+ area for this scenario 9 measures and using switch to present out put as shown belwo summary table - is there a way we can write simple measure to cover all - any help appreicated.  Thanks V

DateOwnerAreaSlot No
18/07/202599APAMBA1
18/07/202599APAMBA2
18/07/202599APAMBA3
18/07/202599APAMBA4
18/07/202599APDRGA34
18/07/202599APCLDA5
18/07/202599APCLDA6
18/07/202599BBCLDA7
24/07/202599BBDRGA35
18/07/202599BBCLDA8
18/07/202599BBAMBA9
18/07/202599BBAMBA10
18/07/202599BBAMBA11
18/07/202599NNCLDA12
18/07/202599NNAMBA13
18/07/202599NNCLDA14
18/07/202599NNCLDA15
18/07/202599NNCLDA16
24/07/202599APAMBA1
24/07/202599APAMBA2
24/07/202599APAMBA4
24/07/202599APCLDA5
24/07/202599APCLDA6
24/07/202599BBCLDA7
24/07/202599BBAMBA9
24/07/202599BBAMBA10
24/07/202599BBAMBA11
24/07/202599NNCLDA12
24/07/202599NNAMBA13
24/07/202599NNCLDA14
24/07/202599NNCLDA15
24/07/202599NNCLDA16
24/07/202599NNCLDA17
24/07/202599NNAMBA18
24/07/202599NNDRGA19
24/07/202599NNDRGA20
24/07/202599NNDRGA21
24/07/202599NNDRGA22

expected output 

Vemul_0-1753508732839.png

 

9 REPLIES 9
v-priyankata
Community Support
Community Support

Hi @Vemul 
@Ashish_Mathur @danextian @rohit1991 @Royel Thanks for your inputs.

I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

Hi @Vemul 

I wanted to check if you had the opportunity to review the information provided by users. Please feel free to contact us if you have any further questions.

 

Hi @Vemul 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

 

Royel
Resolver III
Resolver III

@Vemul Let's solve this in two steps 

Step 1: Create a measure 

Slot Count = COUNTROWS(Data)

 Step 2: Create Matrix Visual 

  • Rows: Drag Owner and Area to the Rows area (create a hierarchy)
  • Values: Drag your Slot Count measure to the Values area
  • Columns: add Date 

    Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

 

rohit1991
Super User
Super User

Hi @Vemul ,

You don’t need to write separate measures for each owner/area/date combination, Power BI’s Matrix visual is designed for this kind of summary.


Create a simple count measure: RowCount = COUNTROWS(YourTable)

 


Or, if you need a unique count (like unique owners): OwnerCount = DISTINCTCOUNT(YourTable[Owner])

 

 

Set up your Matrix visual. Add your count measure as the Value. Power BI will automatically break out the counts for every combination no need for dozens of separate measures or complex SWITCH statements. The visual’s built-in filtering handles it all.

 

If you want to filter for special cases (like counting only when another column equals a value), just use CALCULATE to add your condition. For huge datasets, you can pre-aggregate in Power Query if performance ever becomes an issue, but for most cases the Matrix handles this easily.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
danextian
Super User
Super User

You should be able to do that with the native matrix viz. Your measure can be as simple as COUNTROWS('table') if you're simply counting the rows or records in a table.

danextian_0-1753514656210.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

Just create a simple matrix visua and drag this measure

Measure = countrows(Data)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, 

 

countrows(data) is givng total row count, but I am looking for count for Owner+Area combination 

Thanks

V

 

Drag owner, area and date to the matrix visual.  The measure will read those as implicit filters and return the corect answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors