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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
vijayvizzu
Helper III
Helper III

Min Max in Matrix Visual

I write a below dax code to highlight the Min and Max in the current fitler context.It works fine. But now i want to display the min max in splitted with importing country. Means each block of country's landed cost should highlight min max values. Please suggest

Highlighter = 
VAR vTable = 
CALCULATETABLE(
    ADDCOLUMNS(
        SUMMARIZE(
            Consolidated, Consolidated[Supply Country], Consolidated[Supplier], Consolidated[RM Grade], Consolidated[Importing Country]), 
            "@value", [Landed in USD]
    ),
    ALLSELECTED()
)
VAR MinValue = MINX( vTable, [@value])
VAR MaxValue = MAXX( vTable, [@value])
VAR CurrentValue = [Landed in USD]
VAR Result = 
    SWITCH( TRUE(),
    CurrentValue = MinValue,1,
    CurrentValue = MaxValue,2
    )
RETURN
Result 

vijayvizzu_0-1659519998219.png

 

1 ACCEPTED SOLUTION
vijayvizzu
Helper III
Helper III

I have achieved this.. thank you 🙂

View solution in original post

1 REPLY 1
vijayvizzu
Helper III
Helper III

I have achieved this.. thank you 🙂

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.