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
Babycakes
Helper II
Helper II

Sum column by filter

Hi all,

 

This is probable really simple but I just cant get it.

 

I dont want to sum ratio in general but I want a sum at the bottom that shows on day 5 after filtering the ratios added up is 2.999

or 3 rounded vs 4 staff?

 

I want to be able to then filter that this serivce is over staffed as 4 staff to ratio 3 required?

 

What am I missing?  If i sum ratio it adds all ratios in the column which is incorrect as I am getting 4.67 based on other data?

 

Babycakes_0-1662433639536.png

 

Babycakes_1-1662433664279.png

 

Second image is correct

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Babycakes ,

I've using a different set of sample data, but you get the concept below:

Step 1 : Create a measure ,

Measure = 

IF(
    HASONEVALUE(Sheet1[Sum of Ratio]),
    CALCULATE(
        SUM(Sheet1[Sum of Ratio])),""
)


Step 2: Put Measure to Matrix

Dax_Noob_0-1662450143506.png

If that helps, please mark this as a solution

BR

Dax_Noob

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Babycakes ,

I've using a different set of sample data, but you get the concept below:

Step 1 : Create a measure ,

Measure = 

IF(
    HASONEVALUE(Sheet1[Sum of Ratio]),
    CALCULATE(
        SUM(Sheet1[Sum of Ratio])),""
)


Step 2: Put Measure to Matrix

Dax_Noob_0-1662450143506.png

If that helps, please mark this as a solution

BR

Dax_Noob

Chew_WenJie
Resolver II
Resolver II

Hello, maybe you can try to use measure to sum the value. For example,

 

Measure = SUMX('Table' , [ratio])

 

Hope this method is able to help you.

still giving me same outcome of 4.67 😞

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.