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.
I have a data set of tickets logged on weekly basis, I need to create a view that would give me current week Vs. previous week along with Delta column. Data has columns like Ticket category, Priority, Week & Year, Week No, Year and Ticket Count. Below is the sample of the data.
I have tried creating previous week ticket count by using below DAX formula, but the not able to put it in matrix to get a pivot view with delta column
Previous Week Incidents =
Var CurrentWeek = SELECTEDVALUE(DATA[Week No])
Var CurrentYear = SELECTEDVALUE(DATA[Year])
Var MaxWeekNumber = Calculate(Max(DATA[Week No]), ALL(DATA))
Return
SUMX(
Filter(ALL(DATA),
if(CurrentWeek = 1,
DATA[Week No] = MaxWeekNumber && DATA[Year] = CurrentYear - 1,
DATA[Week No] = CurrentWeek - 1 && DATA[Year] = CurrentYear)),
[Ticket Count])
The final view that I want is like this
Any help would be highly appreciated, Thanks
Solved! Go to Solution.
Finally solved with below measure
Measure 1
Hi @Saibal_78 ,
Could you please share us your dummy pbix/excel ? it's preferred to upload your file (Remove the confidential info) in OneDrive and share us the link. I understood your point, but can barely replicate your data.
Best regards,
Dina Ye
Hi Dina
Thanks for looking into this, below is the OneDrive link where I uploaded my workflow
https://onedrive.live.com/?id=3E7AAA9BEE73122F%21104&cid=3E7AAA9BEE73122F
Thanks
Hi @Saibal_78 ,
The pbix you attached is different with the data you indicated previously. To generate the difference% as you requested, I try to add the measure based on the data in your pbix:
Attached here for your reference; https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/ET7ZCyKVVC9PvsIBYxgXOo...
Hi Dina,
Let me send you the excel file to you. The solution you sent actually is not something I was looking at
https://onedrive.live.com/?id=3E7AAA9BEE73122F%21104&cid=3E7AAA9BEE73122F
Hi @Saibal_78 ,
The file in your link is not accessible. I'm not able to download the excel. could you please resend the file via dropbox/OneDrive for business?
Hi Dina,
Can you check one again
https://onedrive.live.com/?id=3E7AAA9BEE73122F%21104&cid=3E7AAA9BEE73122F
Hi @Saibal_78
Still unaccessible: it seems the link shared is not public and need specific permission :
Finally solved with below measure
Measure 1
Hi @Saibal_78 ,
Sorry for my late reply. Great to know you've nailed it!
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |