Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table like this
Beucase you can see one project can be tagged to multiple strategy so when we aggregrate the data it could become something like this
I have though of using multiple ways to create the "cash flow cleaned" for exmaple dividing the sum of CF by the count of strategy. But it doesn work on the overall basis.
May I know how do you handle that? Thanks.
Solved! Go to Solution.
Hi @GAPER
You can add an index column by project level using the linked method:
https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
and after you'll get the table like :
you can create a simple measure for summarizing only the first row of every project:
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @GAPER
1. You need to merge the tables to get 1.
Please check this guide :
https://www.youtube.com/watch?v=m4feUpoDpVI
2. According to the index it is not a part of UI.
you have to create it. I gave the link to the guide in my first response :
https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
The problem is that I can't merge them into one single table because it will blow up the table size.
Works like a charm. Thanks RITA!
Happy to help 🙂
Thanks Rita - I tried it works on the aggregration level but if i use strategy as a filter. It doesn't know how to dynamically change the index (for example project abc should also be appreaing there) Is there a way we can dynamically make the index according to the strategy?
Hi @GAPER
Update the formula to :
Modified PBIX is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @GAPER
You can add an index column by project level using the linked method:
https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
and after you'll get the table like :
you can create a simple measure for summarizing only the first row of every project:
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi Rita - i have one follow up. Now the data doesn't sit within one single table. It's like this
Would you be able to show me how would you do it now? Thank you.
Also i am not able to find the add index in the PowerBI UI. Could you show me? Thanks
Hi @GAPER
1. You need to merge the tables to get 1.
Please check this guide :
https://www.youtube.com/watch?v=m4feUpoDpVI
2. According to the index it is not a part of UI.
you have to create it. I gave the link to the guide in my first response :
https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
As you can see. If i pick all strategy, it's correct, if i pick X, Y, Z individually it's correct. However when I pick y&z it's giving me the wrong result. Thanks
Underlying excel
Date | Project | Strategy | CF1 | CF2 | Index |
01/01/2024 | A | x | 100 | -100 | 1 |
02/01/2024 | A | x | -200 | 1 | |
03/01/2024 | A | x | 200 | -300 | 1 |
01/01/2024 | A | y | 100 | -100 | 2 |
02/01/2024 | A | y | -200 | 2 | |
03/01/2024 | A | y | 200 | -300 | 2 |
01/01/2024 | A | z | 100 | -100 | 3 |
02/01/2024 | A | z | -200 | 3 | |
03/01/2024 | A | z | 200 | -300 | 3 |
01/01/2024 | B | x | 100 | -100 | 1 |
02/01/2024 | B | x | 200 | -200 | 1 |
03/01/2024 | B | x | 200 | -300 | 1 |
01/01/2024 | B | y | 100 | -100 | 2 |
02/01/2024 | B | y | 200 | -200 | 2 |
03/01/2024 | B | y | 200 | -300 | 2 |
01/01/2024 | c | Z | 100 | 400 | 1 |
02/01/2024 | c | Z | 100 | 400 | 1 |
03/01/2024 | c | Z | 100 | 400 | 1 |
my cashflow formula.
Thanks
Hi @GAPER
I apologize, but with all the scrolling through the images, I’m having trouble understanding what you were trying to achieve and what you’ve done. The only thing I noticed is that the index doesn’t seem to be done correctly. I suggest creating a file with an example and the desired result, and including a link to it—perhaps even in a new, clean post
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |