Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a DAX code where I am doing:
var Final1 = FILTER( SUMMARIZE(NextWeekCS,'Staffing'[DW_EK_Employee],'Date'[Week Year Week Number],"summ", SUM(Staffing[Hours]) ), [summ]<24 ) Var final = SUMMARIZE(final1, 'Staffing'[DW_EK_Employee])
But there is cases where the summ is 0, and my query is not retrieving those results:
I tend to think in a sql-way... is it correct to apply either?
Or shall I create a new/different summarize?
Solved! Go to Solution.
Hi, @Anonymous
What do you expect the output to be? The final output of the Dax you have written is a table.
Table =
SUMMARIZE (
FILTER (
SUMMARIZE (
Staffing,
'Staffing'[DW_EK_Employee],
"summ", SUM ( Staffing[Hours] )
),
[summ] < 24
),
[summ]
)
Can you provide some data for testing? What do you expect the final result to look like and can you show it in a screenshot.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
What do you expect the output to be? The final output of the Dax you have written is a table.
Table =
SUMMARIZE (
FILTER (
SUMMARIZE (
Staffing,
'Staffing'[DW_EK_Employee],
"summ", SUM ( Staffing[Hours] )
),
[summ] < 24
),
[summ]
)
Can you provide some data for testing? What do you expect the final result to look like and can you show it in a screenshot.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
It is somewhat hard to judge this since I am not sure how much data you are dealing with, but I would go with the second option. Additionally depending on your end goal, I would use functions like SUMX in the second variable/ end result. e.g. if you want to have hours in a filter context SUMX(final1,[summ]) should be useful. Finally, these sort of iterative SUMMARIZE structures are rarely optimal and depending on your end goal it might be good to rethink your apporach.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
7 |