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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.