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.
My formular below works on total level but does not work on granular level.
I think the issue is under Class there is Headcount.
Hi @datagorillagirl ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi @datagorillagirl ,
You can create another new measure as below and put this new measure to replace the original measure onto the measure visual as below screenshot...
Note: The groupby fields are from the fields marked with red lines in the screenshot below...
New measure =
SUMX (
GROUPBY (
Account,
Account[Class],
Account[Sub Class],
Account[fieldname1],
Account[fieldname2]
),
[CPH Actual]
)
In addition, you can refer the following links to try to solve your problem...
Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand
Dax for Power BI: Fixing Incorrect Measure Totals
If the above one can't help you get the desired result, please provide some sample data in your table Account (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @datagorillagirl
Try this:
CPH Actual =
VAR _A =
CALCULATE ( [Actual], KEEPFILTERS ( Account[Sub Class] = "People" ) ) / [Avg. Actual People]
RETURN
IFERROR ( _A, 0 )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
106 | |
87 | |
75 | |
66 |
User | Count |
---|---|
125 | |
114 | |
98 | |
81 | |
73 |