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
Anonymous
Not applicable

measure excluding some data catergories wont slice

Hi people

 

I wonder if I could ask for help 

 

I've calculated hours utilisation using the following measure

 

Utilisation = [Total Chargeable Time] / [Total Time Less Modifiers]

 

Its made up of total chargeable time  that looks like this " Total Chargeable Time = CALCULATE(SUM(POT[Hours ]),
FILTER(POT,POT[CHG] = "CHG") " bringing back the total of all time labelled as chargeable.

 

and 

 

 

total time less modifiers that looks like this, Total Time Less Modifiers = CALCULATE([Total Time], POT[Activity ] <> "Annual Leave", POT[Activity ] <> "Maternity Leave", POT[Person ] <> "FD") " bringing back the total time excluding two activity categories and the admin lady.

 

my problem is that i cant slice this by person , when i put them on a chart  with person on the axis i get this thats not correct, i think what its showing is each persons % of the whole, when what i want is the total utilisation %. it works by all other metrics apart from by person - can anyone explain why - many thanks by position.PNG 

 

i get this result 

knackered chart.PNG

 


)

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I made one sample for your refernce. Here I updated your formulas as below.

 

Total Time Less Modifiers1 =
CALCULATE (
    [Total Time],
    FILTER (
        ALLSELECTED ( POT ),
        POT[Activity ] <> "Annual Leave"
            && POT[Activity ] <> "Maternity Leave"
            && POT[Person] <> "FD"
    )
)
Utilisation1 = [Total Chargeable Time] / [Total Time Less Modifiers1]

Then we can get the result as we excepted.

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/tkdqlbre0y54tq3/measure%20excluding%20some%20data%20catergories%20wont%20slice.pbix?dl=0

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

haha,

 

 

sorry to bother everyone - i think i solved it myself, I just excluded the admin lady on a visual level filter and took her out of the measure  and it seems of have worked - would still be interested to know if this can be done with just DAX though 

Hi @Anonymous,

 

I made one sample for your refernce. Here I updated your formulas as below.

 

Total Time Less Modifiers1 =
CALCULATE (
    [Total Time],
    FILTER (
        ALLSELECTED ( POT ),
        POT[Activity ] <> "Annual Leave"
            && POT[Activity ] <> "Maternity Leave"
            && POT[Person] <> "FD"
    )
)
Utilisation1 = [Total Chargeable Time] / [Total Time Less Modifiers1]

Then we can get the result as we excepted.

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/tkdqlbre0y54tq3/measure%20excluding%20some%20data%20catergories%20wont%20slice.pbix?dl=0

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

thanks frank, thats really useful 

Anonymous
Not applicable

haha,

 

 

sorry to bother everyone - i think i solved it myself, I just excluded the admin lady on a visual level filter and took her out of the measure  and it seems of have worked - would still be interested to know if this can be done with just DAX though 

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.