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.
I have a matrix that looks like this:
WIP is just a total on WIP from a transaction.
Age is a column which states the age of the wip
Total WIP is used in the calculation
WIP Percent Calculates the WIP to total WIP (WIP * total WIP)
Weighted Aged Days: Calculates with the following (WIP Percent) * Age. However in the Matter and Client totals of the Matrix the Total is around 200 when it should be 23.
Measure i am using for Weighted Aged Days:
Measure_Total_Aged_Days =
var TotalWIP = Calculate(Sum(WIPHistory[WIP]),ALLSELECTED(WIPHistory[Alloc_ID]))
Var WIP= Calculate(Sum(WIPHistory[WIP]))
var WipAge= [Aged Days]
var Complete = (DIVIDE(WIP,TotalWIP ,0) * WipAge)
return
IF (
HASONEVALUE ( WIPHistory[CLIENT_ID] ),
Complete,
SUMX ( ALLSELECTED (WIPHistory[CLIENT_ID] ),Complete )
)
Is it an issue with my Measure? any help at all would be amazing.
Client ID/MatterID/Tran | WIP | Age | Total WIP | WIP Percent | Weighted Aged Days |
43 | 100 | 60 | 100 | 100% | 200 (WRONG TOTAL) |
46510 | 100 | 60 | 100 | 100% | 200 |
551 | 50 | 30 | 100 | 50% | 15 |
552 | 30 | 20 | 100 | 30% | 6 |
553 | 30 | 20 | 100 | 20% | 2 |
Solved! Go to Solution.
HI @Anonymous
This is a measure totals problem. you may add another measure as below:
Measure =
VAR _table =
SUMMARIZE (
WIPHistory,
WIPHistory[Client ID],
WIPHistory[MatterID],
WIPHistory[Tran],
"_Value", [Measure_Total_Aged_Days]
)
RETURN
SUMX ( _table, [_Value] )
If you still have the problem, please share a simple sample pbix file, that will be a great help.
Regards,
Lin
HI @Anonymous
This is a measure totals problem. you may add another measure as below:
Measure =
VAR _table =
SUMMARIZE (
WIPHistory,
WIPHistory[Client ID],
WIPHistory[MatterID],
WIPHistory[Tran],
"_Value", [Measure_Total_Aged_Days]
)
RETURN
SUMX ( _table, [_Value] )
If you still have the problem, please share a simple sample pbix file, that will be a great help.
Regards,
Lin
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
I am currently using Sumx and HasOneValue and the calculation still does not total correctly.
Right, but you are probably not summarizing it the same way that you are in the table visualization so it likely comes out wrong. Or it could be an issue with your measure the way you have written it since it is in an individual row.
Tough to say without sample source data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Thank you! i will look into this summerize function.
What i have tried:
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |