Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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!!!!
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |