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 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!
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 | |
82 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |