Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello Everyone,
I am having weekly data in attached sheet with column ("Report Date" to "Completed Week") which i have imported in Power BI.
Now, i have to develop custom column "In Prior Weeks Schedule?" and "Completed on Schedule?" in Power BI's power query.
(Logic is as explained by using excel formulas below for the calculation).
We have to compare each WO in current reporting week with last reporting week.
Is there any way to achive this?
In Prior Weeks Schedule? =IF(
SUMIFS([WO'#],
[BU],[@BU],
[WO'#],[@[WO'#]],
[Report Week],[@[Report Week]]-1,
[Schedule Week],[@[Report Week]]-1)
=[@[WO'#]],1,0)
Completed on Schedule=IF(
AND([@[In Prior Weeks Scheudle?]],
[@[Completed Week]]=[@[Report Week]]-1),1,0)
Solved! Go to Solution.
Create a custom key and do self join on the previous table.
key is like thise (reportweek-1) + WO#
Thank you for your reply,
I have uploaded excel file and .pbix file for your reference,
https://drive.google.com/file/d/11Ml22csv7DTZX-Ck16mpQ1u0aTdzDWP7/view?usp=drive_link
Could you please incorporate solution and share the. pbix file
Thank you,
PowerRobots
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 34 | |
| 31 | |
| 30 |