The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Experts
I have a table of forecast with 2 columns for months, DemandMonth and SnapMonth (see below, all in date format), and the DemandMonth is linked to MonthDate in the time master (see below). The objective is to sum Value in forecast based on the selected Monthdate plus the related SnapMonth.
The 1st phase is simple, just sum the value of the month selected. I did a measure below which works.
Time Table
Solved! Go to Solution.
@Anonymous , if they connected the sleected value is no a good idea , If the time table is disconnected
Try like
Measure1 = CALCULATE(SUM('Forecast'[Value]),FILTER('Forecast',[DemandMonth] in values('Time'[MonthDate])&&'Forecast'[SnapMonth]=SELECTEDVALUE('Time'[SnapMonth])))
Measure2 = CALCULATE(SUM('Forecast'[Value]),FILTER('Forecast',[DemandMonth] In values('Time'[-1MonthDate]) && 'Forecast'[SnapMonth] in values('Time'[-1SnapMonth])))
Also explore userelationship, if you want to need one table at a time
https://www.youtube.com/watch?v=e6Y-l_JtCq4
@Anonymous , if they connected the sleected value is no a good idea , If the time table is disconnected
Try like
Measure1 = CALCULATE(SUM('Forecast'[Value]),FILTER('Forecast',[DemandMonth] in values('Time'[MonthDate])&&'Forecast'[SnapMonth]=SELECTEDVALUE('Time'[SnapMonth])))
Measure2 = CALCULATE(SUM('Forecast'[Value]),FILTER('Forecast',[DemandMonth] In values('Time'[-1MonthDate]) && 'Forecast'[SnapMonth] in values('Time'[-1SnapMonth])))
Also explore userelationship, if you want to need one table at a time
Thanks@amitchandak, I tried to disconnect the time table with the forecast, and found it works!!!!