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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Adeblezen
Regular Visitor

RETURN HIGHEST LIST FROM THIS TABLE PER MONTH

Good day here.

Please I need assistance on this.

I want to use a Card Visual to return the Asset with highest, filter by month.

Eg, in Jan FVLG 3 has the highest cost. Thanks

LINEMONTH COST 

FVLG 1JAN $ 12,033.00
FVLG 2JAN $ 14,000.00
FVLG 3JAN $ 23,100.00
FVLG 1FEB $ 25,000.00
FVLG 2FEB $ 12,004.00
FVLG 3FEB $ 23,130.00
FVLG 1MAR $ 22,000.00
FVLG 2MAR $ 14,022.00
FVLG 3MAR $ 30,034.00
1 ACCEPTED SOLUTION

Hi, @Adeblezen 

 

You can try the following methods.

Max Cost = CALCULATE(MAX('Table'[COST]),ALLEXCEPT('Table','Table'[LINE],'Table'[MONTH]))
Measure = CALCULATE(MAX('Table'[LINE]),FILTER(ALLEXCEPT('Table','Table'[MONTH],'Table'[LINE]),[COST]=[Max Cost]))

vzhangti_0-1701914659697.pngvzhangti_1-1701914669360.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @Adeblezen 

 

You can try the following methods.

Measure = CALCULATE(MAX('Table'[COST]),ALLEXCEPT('Table','Table'[LINE],'Table'[MONTH]))

vzhangti_0-1701845503753.pngvzhangti_1-1701845516005.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

Thanks...Great but i will like to have the Line and not the Cost on the Card

Hi, @Adeblezen 

 

You can try the following methods.

Max Cost = CALCULATE(MAX('Table'[COST]),ALLEXCEPT('Table','Table'[LINE],'Table'[MONTH]))
Measure = CALCULATE(MAX('Table'[LINE]),FILTER(ALLEXCEPT('Table','Table'[MONTH],'Table'[LINE]),[COST]=[Max Cost]))

vzhangti_0-1701914659697.pngvzhangti_1-1701914669360.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

 

Fowmy
Super User
Super User

@Adeblezen 

Are you going to have one card for each month?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

No....The month will be a Filter...The highest Line will be display on the Card

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.