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.
Hi All, every DAX example I find on the web is not working. I have three tables:
Step 1 - bring these columns together into a virtual table.
Step 2 - add 3 calculated columns
The reason I'm doing this is because the Matrix table I'm using isn't correctly totalling the ASB Var column. The ABS Var column is giving me the same total result as the Variance column. This is the only way I can figure to resolve the issue.
Thanks All if you can help.
Hi,
You should create additional dimension tables (just like you have the Date table) and create relationships (Many to One and Single) from your 2 Fact tables to the newly created dimension tables. To your visual, drag fields from the dimension tables to visuals/slicers/filters. These simple measures should then work
DQ = sum(tbl_delivered[Del qty])
FQ = sum(tbl_Forecast[Fcst qty])
Variance = [DQ]-[FQ]
Variance % = divide([variance],[FQ])
ABS variance = if([variance]<0,-[variance],[variance])
Hope this helps.
Hi Ashish,
I had in place your suggested relational structure. Applying your ABS Variance DAX changed the Varianbce to positive values but the total is still summing the same the Variance Total.
The ABS Variance should be a much higher value. This is where I'm having issue. Thanks.
Share the download link of your PBI file.
Sorry Ashish, this is company info, I would be prohibited from making it available. But below is what I'm encountering using a Matrix table. You can see the bottom Totals row, the Var and ABS Var are exactly the same number at 3,846 where the ABS Var total should be 14,530.
Try this measure
ABS var_new = SUMX(VALUES(Data[Product]),[ABS var])
Replace Data[Product] with the table and column name which you have dragged to the row labels of the matrix.
Thanks Ashish, but the issue with this formula is the Var number is a Measure, not a calculated column which SUMX needs to perform. And the Qty Del and Qty Fcst columns live in two separate tables. This is the mess I've run into. Thx.
I cannot help witthout a file. Simple.
Hi Ashish, am creating a duplicate dummy PBI file. Will upload it tomorrow. Many thanks for your help.
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 |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |