cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cfpvin Regular Visitor
Regular Visitor

Getting maximum value of a measure for the week where the measure gives daily values

I have a measure which gives gives the daily average time of a time column. I would like to know how to get the maximum of that measure(which is the daily average time) for the week. Attached is the sample of the data.image.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Getting maximum value of a measure for the week where the measure gives daily values

Hi @cfpvin 

Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).

Try this in a card visual:

Measure =
MAXX ( DISTINCT ( Table1[Date] ), [YourMeasure] )

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Getting maximum value of a measure for the week where the measure gives daily values

Hi @cfpvin 

Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).

Try this in a card visual:

Measure =
MAXX ( DISTINCT ( Table1[Date] ), [YourMeasure] )

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

View solution in original post

cfpvin Regular Visitor
Regular Visitor

Re: Getting maximum value of a measure for the week where the measure gives daily values

@AlB  Sorry that I did not put it in text-tabular format. I just have another question too. If there was a similar table, I can get the maximum of the average value of both with the formula you mentioned. Would I be able to compare the two maximum values and get the maximum comparing them both?

v-lid-msft New Contributor
New Contributor

Re: Getting maximum value of a measure for the week where the measure gives daily values

Hi @cfpvin ,

 

We can use the following measure to compare the other two measures:

 

Max = MAX([A],[B])

15.PNG

 

BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 222 members 2,356 guests
Please welcome our newest community members: