Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hey there,
I have a situation I have not been able to tackle without multiple merges and complicated solutions, which I believe can be done easier. Lets say I have the following example INVENTORY_DATA:
Article Date Inventory
1 28-01-2018 2
2 28-01-2018 3
3 28-01-2018 5
1 05-02-2018 3
Now I have the following sales table called SALES_DATA:
Article Selling Date Amount
1 28-01-2018 1
1 06-02-2018 2
1 07-02-2018 1
How can I "flag" the sales to only allow the first 2 sales to be allocated to the table, the option to group the table is not possible due to the differences in the dates. A sale has to occur within 14 days from the inventory moment, otherwise it cannot be allocated to the respective sale. The hard part is that for example the second row of the sales file, one sale needs to be allocated to the first inventory, one to the second one. How can this easily be solved in Power BI? Or is this logic that needs to be moved to python/R in order to calculate it there, export it to CSV and import it to power bi for visualisations?
I hope the info suffices, otherwise please tell what you are missing.
Kind regards
Solved! Go to Solution.
HI @Soldexio,
Based on test, you formula need to do some Recursive calculation which power bi not support, so I'd like to suggest you calculate out of power bi and import result table to create visualization.
Current steps: need one more condition to loop through previous calculated to ensure current amount not calculated in previous.
Regards,
Xiaoxin Sheng
Hi @Soldexio,
Can you please provide some sample data or pbix file for test? It will be help to clarify your table structure and coding formula.
Regards,
Xiaoxin Sheng
Hey there,
In the first post I have given some sample data to clarify my table structure and coding formula. The situation is that I have 2 tables with a few colums. Is that not enough?
Kind regards,
Dennis
HI @Soldexio,
Based on test, you formula need to do some Recursive calculation which power bi not support, so I'd like to suggest you calculate out of power bi and import result table to create visualization.
Current steps: need one more condition to loop through previous calculated to ensure current amount not calculated in previous.
Regards,
Xiaoxin Sheng
Hi @v-shex-msft
Thanks for the attempt, I came to the same conclusion and just wanted to make sure there was no trick underwater that could help me.
Kind regards,
Soldexio
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
117 | |
101 | |
71 | |
61 |