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

display the 2 largest values for individual months

hello, could you advise how to display the 2 largest values for individual months on the cart visual

 

milanSVK_0-1678879865737.png

 

1 ACCEPTED SOLUTION

Hi @tamerj1 
thank you for the advice, in the end I implemented the following solution.
1.thank you for the advice, in the end I implemented the following solutionthank you for the advice, in the end I implemented the following solution

"previosMONT =
VAR caltab_= CALCULATETABLE(all_syntezy,all_syntezy[Datum]=MINX(TOPN(2,VALUES(all_syntezy[Datum]),all_syntezy[Datum]),all_syntezy[Datum]))
return
caltab_"
=>and then I created a liquid metric 👉
CARDpreviosMonth=
VAR TOPpramater = 1
VAR hodnota = MINX ( TOPN ( TOPpramater, VALUES ( previosMONT[CELKOM]), previosMONT[CELKOM] ), previosMONT[CELKOM] )
VAR text_ = FORMAT(hodnota,"0,0")
return
COMBINEVALUES(" ", "TOP",TOPpramater," customer :",    LOOKUPVALUE(lastMONT[NAME],lastMONT[CELKOM],hodnota),".With the amount :",text_,"💲",".For the period",[🔤nameActualMonth])
I finally found the right metric
👉👉
Card👍 =
CALCULATE(
    MINX(TOPN(1,VALUES(all_syntezy[CELKOM]),all_syntezy[CELKOM]),all_syntezy[CELKOM]),
        all_syntezy[Datum]=MINX(TOPN(1,VALUES(all_syntezy[Datum]),all_syntezy[Datum]),all_syntezy[Datum])
        )
🐬📶

View solution in original post

7 REPLIES 7
milanSVK
Frequent Visitor

my expected result for the month of November, see photo

milanSVK_0-1678889788859.png

 

Anonymous
Not applicable

Hi @milanSVK 

You need your solution for particular one month(last month) or for every month

tamerj1
Super User
Super User

Hi @milanSVK 
Do you mean a card for each individual month?

@milanSVK 

Please try

Card =
MINX ( TOPN ( 2, VALUES ( 'Table'[Value] ), 'Table'[Value] ), 'Table'[Value] )

yes this solution will display the 2 largest value but despite all the values. I would still need to modify it to display the 2 largest value of the last month

@milanSVK 

Card =

MAXX (

TOPN ( 1, VALUES ( 'Date'[YearMonth] ),

CALCULATE (
MINX ( TOPN ( 2, VALUES ( 'Table'[Value] ), 'Table'[Value] ), 'Table'[Value] )

)

)

Hi @tamerj1 
thank you for the advice, in the end I implemented the following solution.
1.thank you for the advice, in the end I implemented the following solutionthank you for the advice, in the end I implemented the following solution

"previosMONT =
VAR caltab_= CALCULATETABLE(all_syntezy,all_syntezy[Datum]=MINX(TOPN(2,VALUES(all_syntezy[Datum]),all_syntezy[Datum]),all_syntezy[Datum]))
return
caltab_"
=>and then I created a liquid metric 👉
CARDpreviosMonth=
VAR TOPpramater = 1
VAR hodnota = MINX ( TOPN ( TOPpramater, VALUES ( previosMONT[CELKOM]), previosMONT[CELKOM] ), previosMONT[CELKOM] )
VAR text_ = FORMAT(hodnota,"0,0")
return
COMBINEVALUES(" ", "TOP",TOPpramater," customer :",    LOOKUPVALUE(lastMONT[NAME],lastMONT[CELKOM],hodnota),".With the amount :",text_,"💲",".For the period",[🔤nameActualMonth])
I finally found the right metric
👉👉
Card👍 =
CALCULATE(
    MINX(TOPN(1,VALUES(all_syntezy[CELKOM]),all_syntezy[CELKOM]),all_syntezy[CELKOM]),
        all_syntezy[Datum]=MINX(TOPN(1,VALUES(all_syntezy[Datum]),all_syntezy[Datum]),all_syntezy[Datum])
        )
🐬📶

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.