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 III
Super User III

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 III
Super User III

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?

Community Support Team
Community Support Team

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.

 

 

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
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors