We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All,
I want to pull out the transaction for any vehicle on a given report based on previous workday for a selected week ( monday to sunday)
In this instance last work day would be 1st Oct, but for that vehicle there's no transaction on 1st oct, the report pulled out a day befoe 30/09 Monday. Problem is i only want the 'Previous' day hence 1st Oct, below is what i have.
4 table
1) Date table a calculated column. History/Not, = If(Today<Date, 'History', 'No')
2) Another Calculated column History workday, If(History/Not="", "", Date)
3) Measure 'lastnon blank' of the 'History workday, to give me the last work day of the 'History'.
4) Did a Calculated measure,
Calculate(LastLocation, Filter(Location, Location[Date] = [Previousworkdate]
Can i please know what is the problem ? Why is it pulling out 30/9 instead of 1/10(nothing on 1/10 and so i expect it to be blank)
Hi vinc,
If possible, could you please inform me more detailed information(such as your sample data and expected output)? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi vinc,
I didn't find LastLocation in your sample, please check it and inform me more detailed information(such as your expected output)? Then I will help you more correctly.
Best Regards,
Zoe Zhi
Hi Zoe,
can you please assist ?
thanks
Hi
is the one i have problem with.
calculate firstnonblank for the Day = CALCULATE([Firstnonblank job or location],FILTER(PlantGPS,PlantGPS[Date]=[PreviousWorkday]))
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 |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 36 | |
| 22 |