Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello,
I want to do a forecast of how many (boarding school) rooms we will need at any given date in the next year.
I have prepared a table with three columns: a begin date, an end date and the number of people that will be in that group.
I would like to show the maximum value (most people present at the same time) and bar charts that will show the number of people present at that time.
Solved! Go to Solution.
Hi @schwibach ,
Test the below column:
anzahl1 = sumx(filter(dev_Blockklassen,dev_Blockklassen[Datum]=EARLIER(dev_Blockklassen[Datum])),dev_Blockklassen[Anzahl])
Output result:
If not correct ,could you pls show me your expect correct output?
Best Regards
Lucien
Hi @schwibach ,
Test the below column:
anzahl1 = sumx(filter(dev_Blockklassen,dev_Blockklassen[Datum]=EARLIER(dev_Blockklassen[Datum])),dev_Blockklassen[Anzahl])
Output result:
If not correct ,could you pls show me your expect correct output?
Best Regards
Lucien
Thank you for the support and sorry for making it harder than it should be. The remote workstation with Power BI installed has no browser access and getting the data out is not as straightforward as I'd like it to be. I hope this makes it easier.
id | Anzahl | beginn | ende | schuljahr | Datum |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed930-0fd2 | 5 | 13. Sep 21 | 17. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 13. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed930-0fd2 | 5 | 13. Sep 21 | 17. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 14. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7da27678-017d-a38ed930-0fd2 | 5 | 13. Sep 21 | 17. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 15. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed930-0fd2 | 5 | 13. Sep 21 | 17. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 16. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7da27678-017d-a38ed930-0fd2 | 5 | 13. Sep 21 | 17. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 17. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 18. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa615-012d | 5 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 15 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7da27678-017d-a38ed874-0f50 | 16 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 13 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7da27678-017d-a38ed894-0f69 | 10 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa5d6-0101 | 2 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa4ec-0090 | 9 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa3f2-002e | 11 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fa5-177a | 4 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0fc5-1781 | 3 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7d07f3b1-017d-09ce0e8c-170a | 2 | 14. Sep 21 | 15. Okt 21 | 2021/22 | 19. Sep 21 |
8a8eb808-7cc9f46c-017c-caffa605-0119 | 3 | 13. Sep 21 | 24. Sep 21 | 2021/22 | 20. Sep 21 |
I got it:
anzahl = sumx(filter(dev_Blockklassen,dev_Blockklassen[Datum]='Blockschüler'[Datum]),dev_Blockklassen[Anzahl])
This one gives me the column... It's weird however that the relationship between the tables did not help me... Is there a more elegant way to do this?
Highly unusual that you're using your date table to pull in values from another table. A date table should remain a date table.
Also, it sounds as if a measure might be more useful to you than a calculated column.
Unfortunately, a picture is not of much use in this case (copiable table data would be), so it's difficult to help you.
Regards
I managed to create the dates in new column with the list.dates function.
https://docs.microsoft.com/en-us/powerquery-m/list-dates
I managed to create this dashboard, showing me the maximum value and slicing the data as I wanted.
However, I don't manage to create a sumif column in a table with all of the dates.
I have created a new table with all the different dates from the original table and I defined the 1:n relationship between the new table and the original one.
What I'd need is a sumif function that creates the sum of the column 'anzahl' for all the rows in the original table where 'datum' matches the column 'datum' in the current row of the new table.
sum(dev_Blockklassen[anzahl}) gives me a much too high value that's the same for each row.
Hi,
A small dataset with expected results would be useful.
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
102 | |
71 | |
64 | |
39 |