Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi,
I have created below measure to get the sum of ActualBudgetDeviation by removing all the filters applied in ResourceHierarchy[ResourceHierarchyCol1] and then applying only one filter which is first 2 characters of the string should not start with "01".
ActualBudgetDeviationALL := CALCULATE([ActualBugetDeviation],ALL(ResourceHierarchy[ResourceHierarchyCol1]),LEFT(ResourceHierarchy[ResourceHierarchyCol1],2)<>"01")
But this DAX does not work. It is giving me the value for all the fields in ResourceHierarchy[ResourceHierarchyCol1] and the LEFT(ResourceHierarchy[ResourceHierarchyCol1],2)<>"01" condition does not works.
Please help.
Solved! Go to Solution.
@sabariprabu
Add filter as follows:
ActualBudgetDeviationALL :=
CALCULATE (
[ActualBugetDeviation],
FILTER (
ALL ( ResourceHierarchy[ResourceHierarchyCol1] ),
LEFT ( ResourceHierarchy[ResourceHierarchyCol1], 2 ) <> "01"
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@sabariprabu
Add filter as follows:
ActualBudgetDeviationALL :=
CALCULATE (
[ActualBugetDeviation],
FILTER (
ALL ( ResourceHierarchy[ResourceHierarchyCol1] ),
LEFT ( ResourceHierarchy[ResourceHierarchyCol1], 2 ) <> "01"
)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.