Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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
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)
Solved! Go to Solution.
solution for this can be found here
https://community.powerbi.com/t5/Desktop/help-with-formulating-calculate-filtered-with-variable-dax/...
solution for this can be found here
https://community.powerbi.com/t5/Desktop/help-with-formulating-calculate-filtered-with-variable-dax/...
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.
here is excel with tables used and measures involved to this visual.
https://docs.google.com/spreadsheets/d/1Fi-bRL0TalSatqG2Fs_coCtJbDwShDX4oiMKwDT7Mo8/edit?usp=sharing
relationships
User | Count |
---|---|
97 | |
67 | |
57 | |
47 | |
46 |