Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear Guru/s,
I am a novice in Power Bi desktop - learning the ways.
Have been trying to build a report based on slicer selection of Month / Location/ Status/ & Type.
Able to create MTD avg and %ages with measures,
but slicers do not work in accordance to moving avg YTD or Total YTD exits - PBIX link attached for ref.
Please suggest how to go about it - single table mentioned below :
Date | Zone | Entity_Desc | Ids | Type | Status | Unit | Status | Exits | DateKey | YearNumber | Year | MonthNumber | Month |
Apr-19 | NCR-1 | Discovery Network | XX01 | Employee | Full Time | LOS | Opening | 20190401 | 2020 | FY 2020 | 1 | April | |
Apr-19 | NCR-1 | Walmart | XX02 | Temporary | Part Time | HOU | Opening | 20190401 | 2020 | FY 2020 | 1 | April | |
Apr-19 | NCR-1 | Holiday Inn | XX03 | Contractual | Full Time | HOU | Opening | Inactive | 20190401 | 2020 | FY 2020 | 1 | April |
May-19 | NCR-1 | Discovery Network | XX01 | Employee | Full Time | LOS | Opening | 20190501 | 2020 | FY 2020 | 2 | May | |
May-19 | NCR-1 | Walmart | XX02 | Temporary | Part Time | HOU | Opening | Inactive | 20190501 | 2020 | FY 2020 | 2 | May |
May-19 | NCR-1 | Holiday Inn | XX04 | Employee | Nursing | TEX | New joiner | 20190501 | 2020 | FY 2020 | 2 | May | |
Jun-19 | NCR-1 | Discovery Network | XX01 | Employee | Full Time | LOS | Opening | 20190601 | 2020 | FY 2020 | 3 | June | |
Jun-19 | NCR-1 | Walmart | XX04 | Temporary | Part Time | TEX | Opening | Inactive | 20190601 | 2020 | FY 2020 | 3 | June |
Jun-19 | NCR-1 | Holiday Inn | XX05 | Contractual | Full Time | HOU | New joiner | Inactive | 20190601 | 2020 | FY 2020 | 3 | June |
Jul-19 | NCR-1 | Discovery Network | XX01 | Employee | Nursing | LOS | Opening | 20190701 | 2020 | FY 2020 | 4 | July | |
Jul-19 | NCR-1 | Walmart | XX06 | Contractual | Full Time | TEX | New joiner | 20190701 | 2020 | FY 2020 | 4 | July |
Hi @Anonymous
Try using the below pattern to calculate YTD
YTD Exits =
CALCULATE(
[Exits],
DATESYTD( Sheet1[Date].[Date] )
)
Hi Mariusz,
Thanks for the code.
The output received basis the code is of Month on months Exits ( e.g. April -10, May-15 ...)and not rolling YTD exits (e.g. April - 10, May - (10+15 = 25), as required here.
Please advise.
Regards,
Pratz
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
109 | |
89 | |
76 | |
67 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |