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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CaptainHenkka
Regular Visitor

Create a MAX MEASURE which works in a timeline chart

I am sure there are tons of ways to do this, but since none of the ones I found here worked, I will share my findings.

 

Problem: I needed to show the MAX value as a separate line in a time-based Line/Bar combochart AND have the MAXimum value respect the selected time range.

 

max_time.jpg

 

Solution:

Create a new MEASURE, which reads like this:

twsMax = 
MAXX(
	ALLSELECTED(weather),
	CALCULATE(MAX('weather'[tws]))
)

And if I am not mistaken, this measure will get all the SELECTED rows in my table called "weather" and returrn the MAX value for the column called "tws".

 

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @CaptainHenkka,

Based on my test, you could refer to below steps:

Sample data

1.PNG

Create a measure

Measure = MAXX(ALLSELECTED(Table1),'Table1'[Value])

Result:

2.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/m25gehye19maulo/Create%20a%20MAX%20MEASURE%20which%20works%20in%20a%20time...

 

Regards,

Daniel He

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

View solution in original post

3 REPLIES 3
v-danhe-msft
Employee
Employee

Hi @CaptainHenkka,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Employee
Employee

Hi @CaptainHenkka,

Based on my test, you could refer to below steps:

Sample data

1.PNG

Create a measure

Measure = MAXX(ALLSELECTED(Table1),'Table1'[Value])

Result:

2.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/m25gehye19maulo/Create%20a%20MAX%20MEASURE%20which%20works%20in%20a%20time...

 

Regards,

Daniel He

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

Thank you @v-danhe-msft, yes this also works and is admittedly a simpler way 🙂 Thanks for the tip!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.