Forum Discussion
Dax formula error
Hey,
I'm sorry I got confused by the two measures in one code screen, sorry for that.
Please consider to create sample data, just an Excel file and a PBIX file. I will not download any file that I have to delete after I find a solution (if I ever will) or that you provide via a direct message.
Regards,
Tom
Hi Tom..
silly question how do you attcahed a pbix file here....i can send a drop box link?
- TomMartens7 years agoSuper User
Hey,
just post the dropbox link!
regards,
Tom
- Anonymous7 years agoNot applicable
1. the data in the link file you#ll need to chnage table name to dimdate and add a date hierarchy to the sales table....
also i have managed to get t his far - but the measure only gives me the current period 12 months rolling...
2. i want to show two visuals one in a clustered bar chart showing the previous 12 period and secondaly a card that dynamically changes to reflect the current month only...
Datefilter12Month = VAR MonthsToLookBack = 12 VAR DataTableDate = MAX ( 'DimDate'[Date] ) RETURN CALCULATE ( SUM ( Sales[Sales] ); DATESINPERIOD ( dimDate[Date]; DataTableDate; - MonthsToLookBack; MONTH ) )- Anonymous7 years agoNot applicable