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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calculate Date for Highest Percentage calculated

Dear,

 

I would like to retrieve the date on which the calculation of the success rate (percentage) is the highest.

Unfortunately, I cannot find the correct way of doing this. Below you can find a sample case. The idea is to retrieve 02/01/2021 as date in my example, as for this date the percentage is the highest(max). Can you please help me ?

Below the sample data, you can see the dax speudo code.

Thank you in advance

Tim

 

pbi_maxdate_of_percentage.jpg

 

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

Place this measure in a card visual:

Measure =
TOPN (
    1,
    DISTINCT ( Table1[Date] ),
    DIVIDE (
        CALCULATE ( COUNT ( Table1[Status] ), Table1[Status] = "Success" ),
        CALCULATE ( COUNT ( Table1[Status] ) )
    ), DESC
)

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Anonymous 

Place this measure in a card visual:

Measure =
TOPN (
    1,
    DISTINCT ( Table1[Date] ),
    DIVIDE (
        CALCULATE ( COUNT ( Table1[Status] ), Table1[Status] = "Success" ),
        CALCULATE ( COUNT ( Table1[Status] ) )
    ), DESC
)

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors