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

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

Highlighted
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
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 6 members 2,763 guests
Please welcome our newest community members: