cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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?

Highlighted
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
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 192 members 1,919 guests
Please welcome our newest community members: