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
sameergupta60
Helper IV
Helper IV

Need Help

hi 

 

in the below example Matri table, I want the avg range between 5 to 45. please suggest the formula.

in the below example it includes all column data & generates Avg.  

sameergupta60_0-1606219982492.png

Another example is given below

11313
21515
32121
42121
52828
648 
793 
Avg 3419.6

Regards,

Sameer 

 

 

 

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

Hi, @sameergupta60 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

d1.png

 

You may create a measure as below.

Result = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Val]),
    AVERAGE('Table'[Val])
)

 

Result:

d2.png

 

Best Regards

Allan

 

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

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @sameergupta60 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

d1.png

 

You may create a measure as below.

Result = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Val]),
    AVERAGE('Table'[Val])
)

 

Result:

d2.png

 

Best Regards

Allan

 

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

amitchandak
Super User
Super User

@sameergupta60 , Try like

averageX(filter(table, table[value]>= 5 && table[value]<= 45),table[Value])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.