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
b244293
Frequent Visitor

Get the largest value of each Row in Matrix Power BI

Hi,

I have created the table(Dummy) mentioned below,

 

LeadIdDateNameQuarter
1SundayQ1
2SundayQ1
3SundayQ1
4SundayQ1
5SundayQ2
6SundayQ2
7SundayQ3
8MondayQ1
9MondayQ1
10MondayQ2
11MondayQ2
12MondayQ2
13MondayQ2
14MondayQ2
15MondayQ3
16MondayQ3

 

Here, My goal is to highlight the biggest value of each row in Matrix view.

 

imgReport.png

 

So, Could you help me to create the DAX query?

 

Thanks,

Bala N.

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Sure, put DateName in a matrix visual for rows. Put Quarter in the Columns of the matrix. For the Values, put COUNT of LeadID. Create a measure like:

Measure =
VAR __Table =
SUMMARIZE(
ALL('Table'),
[DateName],
[Quarter],
"__Count",COUNTROWS('Table')
)
VAR __Count = COUNTROWS('Table')
RETURN
IF(__Count = MAXX(__Table,[__Count]),1,0)


Then base your conditional formatting off of that Measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Sure, put DateName in a matrix visual for rows. Put Quarter in the Columns of the matrix. For the Values, put COUNT of LeadID. Create a measure like:

Measure =
VAR __Table =
SUMMARIZE(
ALL('Table'),
[DateName],
[Quarter],
"__Count",COUNTROWS('Table')
)
VAR __Count = COUNTROWS('Table')
RETURN
IF(__Count = MAXX(__Table,[__Count]),1,0)


Then base your conditional formatting off of that Measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
dm-p
Super User
Super User

Hi @b244293,

I've provided a solution on your other post w/attached workbook.

Regards,

Daniel





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

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




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.

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.