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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mharipr5
New Member

Count the Values based on dynamic rows in Matrix

We must create a Matrix using "Closed ID" as Rows & Count, Current Account Ratio, and Amount Processed as Values.

 

Here comes the issue, a few columns are referring to Closed ID & Few of the columns are referring to “Assigned ID”, but we Have to use only the Closed ID as rows & those Columns which are referring the “Assigned ID” Should reflect in the Closed ID Matrix.

 

I have attached an Excel sample with two tables & and what the result should look like. The result using Closed ID as rows & Column “Count” value is derived based on “Assigned ID”. I'm expecting the same in the  Power Bi matrix using Dax. 

 

Mharipr5_1-1671605581510.png

 

 

1 ACCEPTED SOLUTION
v-jialluo-msft
Community Support
Community Support

Hi  @Mharipr5 ,

 

Please follow these steps:
(1) Create a new measure

COUNTA = CALCULATE(MAX('Table'[Count]),FILTER(ALL('Table'),'Table'[Assigned ID] = MAX('Table 1'[Closed ID])))


(2)Final output

vjialluomsft_0-1671699217669.png

 

Best Regards,
Gallen Luo
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

1 REPLY 1
v-jialluo-msft
Community Support
Community Support

Hi  @Mharipr5 ,

 

Please follow these steps:
(1) Create a new measure

COUNTA = CALCULATE(MAX('Table'[Count]),FILTER(ALL('Table'),'Table'[Assigned ID] = MAX('Table 1'[Closed ID])))


(2)Final output

vjialluomsft_0-1671699217669.png

 

Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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