This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
hello,
i have to select top records , the structure is simple, id, date and value, and for each date, i have to get the first records for which the sum of value = 0.7* total value for each day something like this
| Data | ||||||||
| id | day | value | ||||||
| id1 | 01.01.2000 | 10 | ||||||
| id2 | 01.01.2000 | 4 | ||||||
| id3 | 01.01.2000 | 5 | Temp | |||||
| id4 | 01.01.2000 | 7 | ||||||
| id5 | 01.01.2000 | 5 | Total | Total 70% | ||||
| id6 | 01.01.2000 | 8 | 01.01.2000 | 39 | 27.3 | |||
| id7 | 01.02.2000 | 12 | 01.02.2000 | 42 | 29.4 | |||
| id8 | 01.02.2000 | 9 | 01.03.2000 | 35 | 24.5 | |||
| id9 | 01.02.2000 | 6 | ||||||
| id10 | 01.02.2000 | 8 | ||||||
| id11 | 01.02.2000 | 4 | ||||||
| id12 | 01.02.2000 | 3 | ||||||
| id13 | 01.03.2000 | 11 | ||||||
| id14 | 01.03.2000 | 3 | ||||||
| id15 | 01.03.2000 | 3 | ||||||
| id16 | 01.03.2000 | 7 | ||||||
| id17 | 01.03.2000 | 9 | ||||||
| id18 | 01.03.2000 | 2 | ||||||
| RESULT | ||||||||
| id | day | value | ||||||
| id1 | 01.01.2000 | 10 | ||||||
| id6 | 01.01.2000 | 8 | ||||||
| id4 | 01.01.2000 | 7 | ||||||
| id7 | 01.02.2000 | 12 | ||||||
| id8 | 01.02.2000 | 9 | ||||||
| id10 | 01.02.2000 | 8 | ||||||
| id13 | 01.03.2000 | 11 | ||||||
| id17 | 01.03.2000 | 9 |
Thank you
Solved! Go to Solution.
You may download my revised PBI file from here.
Hope this helps.
You may download my revised PBI file from here.
Hope this helps.
Thank you verry much!
You are welcome.
Hi,
You may download my PBI file from here.
Hope this helps.
thank you very much, can you help me change it so it orders by values not by id? i made a mistake when i write the example. thank you
You are welcome. You have completely changed the example. Show the expected result very clearly.
i've change it. thank you, it is possible to make a new table having the result structure?
Hello, you were right , i need the sort order to be values descending, i have a small problema beacuse i don't understand how it calculate the day cumul, when o apply the example to my data, it result something like this
and i don;t understand from where it gets the value for iphone 13 pro, pro max...
the formula is
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 22 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 21 |