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 2 tables with data, for which I want to match the totals of Data B when the row on Data A is > 0. The measure I figured would work, only works on row level, but not on totals.
Result 24.496, expected value 19.054.
Why does this happen, what am I missing here? Ideally I'd just "SUMIF" on date and itemID from A to match values with B, but I couldnt find an Excel equivalent for DAX that worked for me.
Perhaps a calculated column would probably be better, but both datasets are detailed differently. Is there perhaps a way to create a new table, totaling on itemID + date from both tables (ideally with Data A being the generator of the itemID's)?
Just going to bump this topic one time in hopes of a solution, otherwise I'll probably have to try and fix it in SQL instead.
Could this be considered a bug, or is this the subtotal a result of me using the wrong formula?
@amitchandak When I use your measure, I have 2 options for the itemID. The one from data A or my table that links the 2 itemid's together. However, both seem to do the same thing in the totals:
Using the ItemID-link table:
Using the ItemID from table A:
EDIT: In case it is important to mention, there are other filters on this page (date/category). I do get different results if I change the category or remove it completely, but the results act in the same way.
@Anonymous , Try measure like
Measure= Sumx(values(Table[Item ID]) IF(SUM(Data A[Values]) > 0;SUM(Data B[Values]), blank()))
use correct table for item id
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |