The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
Trying to add filter in measure I am using
Current Measure:
Solved! Go to Solution.
Scheduled vs Actual Effort with Filters = //try this one
CALCULATE(
DIVIDE(
SUM(PVEffort[ActualEffort]),
SUM(TimePlanned[PlannedEffort])
),
NOT(ISBLANK('TableName'[Organisation])),
'TableName'[WorkType] = "Installation" || 'TableName'[WorkType] = "Absence"
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Hi @jalaomar ,
@mh2587 Good answer! And you can also try this:
Measure =
CALCULATE(
DIVIDE(
SUM(PVEffort[ActualEffort]),
SUM(TimePlanned[PlannedEffort])
),
'PVEffort'[Organisation] <> BLANK(),
'PVEffort'[WorkType] IN { "Installation", "Absence" }
)
I've tested both DAXs and they're both correct.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to both of the answers to help the other members find it more quickly.
Hi @jalaomar ,
@mh2587 Good answer! And you can also try this:
Measure =
CALCULATE(
DIVIDE(
SUM(PVEffort[ActualEffort]),
SUM(TimePlanned[PlannedEffort])
),
'PVEffort'[Organisation] <> BLANK(),
'PVEffort'[WorkType] IN { "Installation", "Absence" }
)
I've tested both DAXs and they're both correct.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to both of the answers to help the other members find it more quickly.
Scheduled vs Actual Effort with Filters = //try this one
CALCULATE(
DIVIDE(
SUM(PVEffort[ActualEffort]),
SUM(TimePlanned[PlannedEffort])
),
NOT(ISBLANK('TableName'[Organisation])),
'TableName'[WorkType] = "Installation" || 'TableName'[WorkType] = "Absence"
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!