The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I have a request to reallocate values from one Product Line into the other Product Lines based on the YTD Revenue % split of the Product Lines.
Example I pulled together in excel to visually represent this:
I am wondering how I should build out this use case. Is DAX the right approach or should a pre-process within PowerQuery?
Any assitance is greatly appreciated!
Solved! Go to Solution.
Hi @dylankaiser4 ,
You can use dax to produce your required output, and it is simple to do so like in Excel. One reservation regarding the YTD Revenue allocation is that, you have to be careful when you want to see the allocated sales by month granularity. In my opinion, it appears simpler to do so by month by month distribution and add across months for YTD rather than having to subtract from current month YTD from previous month YTD to get the current month monthly revenue. However, for this example, I did as you requested, and I attach an example pbix file below.
Hi @dylankaiser4 ,
You can use dax to produce your required output, and it is simple to do so like in Excel. One reservation regarding the YTD Revenue allocation is that, you have to be careful when you want to see the allocated sales by month granularity. In my opinion, it appears simpler to do so by month by month distribution and add across months for YTD rather than having to subtract from current month YTD from previous month YTD to get the current month monthly revenue. However, for this example, I did as you requested, and I attach an example pbix file below.
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |