Forum Discussion
visual not showing timeline correctly dmicalendar problem
Hi,
I have multiple tables wich have two dates fields startdate and enddate. This is why I have created dimstartdates and dimenddates calendars.
Now I have try to create a visual, where there is new hires, new hires same period last year and Number of employees % change.
Measure for new hires is
New hires previous year is
Then the third measure is Number Of Employees end of last year
if I put the visual time line Month from Dimstartdate table column calues are correct, but noe% is incoorect
then if I change the month to come from dimenddates table the line is correct but columns not and I can't figure out how to get over this issue (I understand that the problem is that NOE endoflastyear uses dimenddate from where the noe YoY% is calculated and other measures use dimstartdate)
- Anonymous4 years ago
solution for this can be found here
https://community.powerbi.com/t5/Desktop/help-with-formulating-calculate-filtered-with-variable-dax/m-p/2644558#M928519
3 Replies
- AnonymousNot applicable
Hi Anonymous ,
You can try to use the calculation table to create a date table here, use the date of this date table as the X-axis and do the calculation..
Table = CALENDAR( MIN('Dimstartdate'[Date]),MAX('Dimstartdate'[Date]))Or change the relationship between tables
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
here is excel with tables used and measures involved to this visual.
https://docs.google.com/spreadsheets/d/1Fi-bRL0TalSatqG2Fs_coCtJbDwShDX4oiMKwDT7Mo8/edit?usp=sharingrelationships
- AnonymousNot applicable
solution for this can be found here
https://community.powerbi.com/t5/Desktop/help-with-formulating-calculate-filtered-with-variable-dax/m-p/2644558#M928519