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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RhoFox
Frequent Visitor

min,avg,max measure with measure as filter

Hi There 🙂

I need struggle with some measure in this case:


I have this table:

Project Pos Value
Project 1 111 
Project 1 112 
Project 1 113 
Project 1 114 
Project 1 115 
Project 2 111 
Project 2 112 
Project 2 113 
... ... ...

I have a lot of filter/slicer in my dashboard, for example:

Project = Project 1 or Project 2


I have some True/False Measure "Select" with some callculation behind

Project Pos ValueSelect 
Project 1 111 True 
Project 1 112 True 
Project 1 113 True 
Project 1 114 True 
Project 1 115 False 
Project 2 111 False 
Project 2 112 False 
Project 2 113 True 
Project 2 114 True 
Project 2 115 True 

 

I need now 3 Measures:
min, avg and max from the values, it must be filteret and has to ignore the False values from the Measure "Select"

Serched:
Min = 2
Avg = 4.57
Max = 7

I would be very grateful for any help 🙂
Here is the Wetransfer Link to the pbix:
https://we.tl/t-o7wkH0Rlxn

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @RhoFox ,

The data you provided and the pbix file have a little different,so result will have a little different.

vluwangmsft_0-1628559658897.png

 

Try the following measure:

mintest = CALCULATE(MIN(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))
maxtest = CALCULATE(MAX(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))
average = CALCULATE(AVERAGE(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))

Final get the below:

vluwangmsft_1-1628559777888.png

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @RhoFox ,

The data you provided and the pbix file have a little different,so result will have a little different.

vluwangmsft_0-1628559658897.png

 

Try the following measure:

mintest = CALCULATE(MIN(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))
maxtest = CALCULATE(MAX(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))
average = CALCULATE(AVERAGE(Tabelle11[Value]),FILTER(ALLSELECTED(Tabelle11),[Select]="True"))

Final get the below:

vluwangmsft_1-1628559777888.png

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

lbendlin
Super User
Super User

the link may have expired? 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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