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 folks,
I am trying to do a dual filter on a table, running DirectQuery mode, which doesnt seem to work as I hoped - hoping someone here has better ideas.
Example table:
Outcome date | Outcome 1 | Outcome Show |
4/5/2019 | 56 | 700 |
4/9/2019 | 78 | 800 |
5/23/2019 | 250 | 900 |
7/30/2019 | 79 | 1000 |
7/30/2019 | 80 | 1100 |
what I am trying to do is a table that shows:
Outcome date | Outcome Show |
7/30/2019 | 1100 |
with this Measure:
Outcome Filter Measure = SUMX(
FILTER(
FILTER(
'Outcome Table',
'Outcome Table'[Outcome Date]=MAX('Outcome Table'[Outcome Date])
),
'Outcome Table'[Outcome 1]=MAX('Outcome Table'[Outcome 1])
),
'Outcome Table'[Outcome Show]*1
Which ends up showing up blank - because the outer filter doesnt seem to work - ie. DAX views them not as sequential filters, but as "AND" filters. So if dont do the second filter, and just filter for MAX Outcome Date, I end up with first row of Max date, showing 1000, while I want to have the table filtered first down to the Latest date availiable, then within that subset, look for the largest Outcome 1 value, then only show resulting row.
Thanks all!
Hi @VTB
Try the below.
Measure = VAR _date = CALCULATE( MAX( 'Outcome Table'[Outcome date] ), ALL('Outcome Table' ) ) VAR _one = CALCULATE( MAX( 'Outcome Table'[Outcome 1] ), 'Outcome Table'[Outcome date] = _date ) RETURN CALCULATE( SUM( 'Outcome Table'[Outcome Show] ) * 1, 'Outcome Table'[Outcome 1] = _one )
got the syntax to work, but returns blanks for every row.
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 |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |