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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AShah16
Regular Visitor

Show Mean, Max and Min value for filtered data in a plot

I have a filtered cross plot. The plot can be filtered by users through several filters and slicers. I want a separate table to display the mean, max and min value ,of the x-axis measure,for the filtered points based on all the filters and slicers applied on the plot.  The mean, max and min should get updated as the displayed points change (based on the filters and slicers).

 

How can i get this done ?

 

Plot_Filtered.JPGMean, Mid,Max.JPG

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

Hi @AShah16 ,

 

You can create a summaried table by the x-axis measure. Then calculate value for mean, max and min value. You can try something like below:

 

Maxvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return MAXX(a,[_measure])

Meanvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return AVERAGEX(a,[_measure])

Minvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return MINX(a,[_measure])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @AShah16 ,

 

It is a sample dax formula, you need to change it based on your actual table name。

 

Best Regards,

Dedmon Dai

 

AShah16
Regular Visitor

Hi @v-deddai1-msft ,

Thanks a lot for your kind reply. In your expression what should i provide as "Table" and "_measure". Somehow when i used the expression it says syntax incorrect for Table.  

 

Thanks 

v-deddai1-msft
Community Support
Community Support

Hi @AShah16 ,

 

You can create a summaried table by the x-axis measure. Then calculate value for mean, max and min value. You can try something like below:

 

Maxvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return MAXX(a,[_measure])

Meanvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return AVERAGEX(a,[_measure])

Minvalue = var a =SUMMARIZE(Table,Table[column1],"_measure",[measure]) return MINX(a,[_measure])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.