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.
I finally figured out a DAX to calculate the product of two attributes without creating a table:
That produces the third column below which looks great. The total row is off though as it is following the same logic.
If I add up the third column the true total should be 148,724, not 213,618. I really do not use the total and can hide it. The problem is that I am trying to create a formula for the 4th column that is the correct sum of all items in the 3rd column.
I am using the following formula which is not working:
WeightedCollStaffProcTotal = CALCULATE([WeightedCollStaffProc],All(BRG_PHLEBOTOMY_GROUP[Phlebotomy_Group]))
Suggestions?
Solved! Go to Solution.
Let me give you an example:
In the above picture :
Hi, please try to use this method: Use SUMX+VALUES to wrap your Return.
SUMX(VALUES( the column of current row contents in your matrix ), Return Result)
Appreciate your response. Feel very ignorant here as I am not quite sure what you mean. Do you mean:
Sumx(Values(PhlebAttemptsper,Weightingper))
It keeps wanting a table. Or are you suggesting in the next metric, "WeightedCollStaffProcTotal" to create the sumx? I keep getting the request for a table name???
Let me give you an example:
In the above picture :
User | Count |
---|---|
24 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
29 | |
13 | |
11 | |
9 | |
9 |