Forum Discussion
Matthew1900
4 years agoFrequent Visitor
Table Viz with DAX Calculated Dimension Column
Hi All - I would greatly appreciate thoughts on the below issue that has stumped me. I am attempting to create a simple table viz in PBI Desktop that includes a calculated column from one table ...
- Anonymous4 years ago
Hi Matthew1900 ,
I created some data:
Table1:
Table2:
Here are the steps you can follow:
1. Create calculated column.
Calculated Column Formula = var _Table1= SELECTCOLUMNS('Table2',"1",[Group]) return IF( 'Table1'[Group] in _Table1, CALCULATE( SUM('Table2'[Amount2]),FILTER(ALL(Table2),'Table2'[Group]='Table1'[Group])) ,'Table1'[Amount])2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Ashish_Mathur
Super User
4 years agoHi,
Share some data, describe the question and show the expected result.