Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
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
Hi all,
This is my first post in this community and I have a problem that has been troubing me for some time now and I am curious, at this point, if it is even possible.
So, I have transactional data of ordered quantity by customers. My goal is to create a running total for this ordered quantity starting from the earliest order date to the latest, by material (SKU) number. So each SKU should have its own running total.
This first part is simple, but where I get stuck is that I want to incorporate a measure to select which customer to start with on all dates.
For example if I only have 10 pieces of a SKU in stock and 5 customers each ordering 3 on a date, I want to be able to select (with a slicer) which customer(s) will get the pieces we have in stock.
I cannot seem to find a way to incorporate column level filters with a measure as a rank without it either giving me an error or returning the wrong totals. Hopefully this all makes sense and if not I would be happy to clear it up in the comments.
Thanks in advance for all of your help.
Hi @Anonymous,
If I understand correctly, what you need is to calculate the total among the customers selected by the slicer.
You can use ISFILTERED function to meet this.
You can try measure like:
IF(
ISFILTERED([customers]),
[Measure],
BLANK()
)
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
You are not too far off from what I am trying to accomplish. Rather than a filter though, I want it to be more like a rank. So if a customer is selected, all other customers still show in the visual and you can watch their inventory drop because it is being allocated to the selected customer.
Hi @Anonymous
Is your issue solved?
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi @Anonymous,
What is the calculation logic of rank?
Could you provide your expected output in format of excel?
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |