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.
Hi,
Please see attached picture. I have this table containing working days (wd) used for solving change requests. The satus shows wether the request is finalized (final check approved) or is still not resolved (to be reviewed etc.). On this way we see how many working days that have been spent for different statuses.
I want to make a measure that can filter the working days that are finalized and those that are still to be reviewed. I know I can do it by the filter pane, but I want to to it in a measure/dax so I can compare it in a stacked colum chart (see the second picture; its just something i made up and not based on correct numbers).
I am new to Power BI so really appreciate the help.
Hi, something like this?
WD Finalized = CALCULATE(SUM('Table'[WD]), KEEPFILTERS('Table'[Status]="Final check approved"))
WD Pending = SUM('Table'[WD]) - [WD Finalized]
Or you can create the 2nd one using a list of statuses to include like the first one but with many conditions in KEEPFILTERS. (Status IN { "Status 1", "Status 2", ...} )
Best Regards
Ulf
Hi @Anonymous
if I understand you correct ot will be enough to create a calculated table like
Filtered table = FILTER( 'Table',
'Table'[Status]="final check approved" || LEFT('Table'[Status], 14) = "To Be Reviewed"
)
Hi @az38
Thanks for your reply.
The screenshot I took is just a slice of a much larger table that is eventually going to be integrated from another datasource. I need a measure that filter out those who have "final check approved" and "final check rejected". I need another measure that filter out "to be reviewed (all of those kinds)".
@Anonymous
sorry, do not understand. previous solution is not ok?
you can do something like above, like
Filtered table = FILTER( 'Table',
'Table'[Status]="final check approved" || 'Table'[Status]="final check rejected"
)
or
Filtered table = FILTER( 'Table',
LEFT('Table'[Status], 14) = "To Be Reviewed"
)
I actually want to calculate the average. Could you help me correct this one:
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 |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |