Cosmin
Cosmin

Reputation: 585

DAX measure to iterate each row for correct division (for total as well)

I am not sure if there's a way in DAX to create a measure that would help me with the following:

Here's a simple example: enter image description here

Where:

At first I've created measures for each category (e.g. TotalCateg1 = SUM[Category1] etc.) and hopping to get the right result in the end. My problem is I am not able to get both the daily efficiency and the total right. Is there a way around it?

Upvotes: 1

Views: 1823

Answers (1)

Kresimir L.
Kresimir L.

Reputation: 2441

For Total Categories use this formula:

=SUM([Category 1])+SUM([Category 2])+SUM([Category 3]) .

then for the Efficiency use this formula:

=([Total Categories]+SUM([Category 4])*0.33)/SUM([Category 4])

enter image description here

Upvotes: 1

Related Questions