Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
thethakuri
Frequent Visitor

Date dimension table not working with Generate(d) table

I have following tables:

  • sales_target (from DB)
  • wip_forecast (from DB)
  • DateDim (date dimension table)
  • Cashflow Forecaster (created from another table using "Generate") 

 

thethakuri_0-1624794277781.png

 

All dates are of Date type and mmmmYYYY format:

thethakuri_1-1624794567654.png

 

My issue is, when I try to sort the data using DateDim[Date MMYY], it works with columns from sales_target & wip_forecast tables but not Cashflow Forecaster. As you see in below, I just get the sum of a column from Cashflow Forecaster as a point and not spread over like other fields.

 

thethakuri_2-1624794868185.png

 

 

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hi Nate,

 

My dates table have dates ranging from April 2008 to 10 years in future (June 2022), more than enough for forecast table.

FILTER (
    CALENDAR ( MIN ( 'invoice'[date_issued] ), DATE(YEAR(NOW())+10,MONTH(NOW()), DAY(NOW()))),
    [Date] = EOMONTH ( [Date], -1 )+1
)

Here's the relationship fields from Date Table to forecast table:

thethakuri_0-1624834834393.png

Forecast table:

CashflowForecast Table = GENERATE ( 'FilteredQuote Table', GENERATESERIES ( 1, 'FilteredQuote Table'[forecast_months], 1 ))
FilteredQuote Table = CALCULATETABLE('quote',FILTER('quote','quote'[stage]<>"Archived"&&'quote'[stage]<>"Deleted"))

 

 

 

thethakuri
Frequent Visitor

Hi Nate,

 

My dates table have dates ranging from April 2008 to 10 years in future (June 2022), more than enough for forecast table.

FILTER (
    CALENDAR ( MIN ( 'invoice'[date_issued] ), DATE(YEAR(NOW())+10,MONTH(NOW()), DAY(NOW()))),
    [Date] = EOMONTH ( [Date], -1 )+1
)

Here's the relationship fields from Date Table to forecast table:

thethakuri_0-1624834834393.png

Forecast table:

CashflowForecast Table = GENERATE ( 'FilteredQuote Table', GENERATESERIES ( 1, 'FilteredQuote Table'[forecast_months], 1 ))
FilteredQuote Table = CALCULATETABLE('quote',FILTER('quote','quote'[stage]<>"Archived"&&'quote'[stage]<>"Deleted"))

 

 

 

Anonymous
Not applicable

Assuming you are expecting to see dates in the future (hence the Forecast), do you have future dates in your date table? And what are the relationship fields from Date Table to forecast table? Finally, can we see the formula you are using?

Thanks!-- Nate

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors