Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi guys and girls,
I am new to power bi and im finding it rather challenging to create a measure based off 2 tables.
The tables i am using are Calendar(This is Dimension) and SalesMeasure(This is Fact)
So basically i want to create a SalesCY measure in my Fact table that indicates if the flag MTDCY_Flag = 1 then show Sales value else 0;
MTDCY_Flag is in Calendar table.
I tried to create something along the lines as ..
SalesCY = IF(Related('Calendar'[MTDCY_Flag = 1); 'SalesMeasures[SalesValue]; 0);
This doesn't work though.
Thanks
StarLord
Solved! Go to Solution.
Sounds like you could you create a calculated column to diplay where MTDCY_Flag = 1.
Sounds like you could you create a calculated column to diplay where MTDCY_Flag = 1.
Thanks
@Anonymous wrote:Sounds like you could you create a calculated column to diplay where MTDCY_Flag = 1.
Column = IF(MTDCY[Flag] = 1, "True", "False")You could then use a visual filter to filter to only "True" values which you can then narrow down to where Sales = 0.
Happy to help!
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |