Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Filtering history table to have only the last value

Hello

 

I have a history table similar to this:

id item state

1   1       1

2   1       2

3   2       1

4   3       1

5   4       1

6   4       2

7   4       3

 

but to make some filters I needd the table to be like this:

id item state

2   1       2

3   2       1

4   3       1

7   4       3

 

How can I do this? Is it possible

 

Thanks

2 ACCEPTED SOLUTIONS
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

If you want a report visual, you can drag the three columns into a table visual. And then change the summarization of [item] to Don't summarize, of [id] to Maximum, of [state] to Maximum.Filtering history table to have only the last value.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you want a new table, try this formula.

Table =
SUMMARIZE (
    'Table1',
    Table1[item],
    "id", MAX ( 'Table1'[id] ),
    "state", MAX ( 'Table1'[state] )
)

Filtering history table to have only the last value2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

@v-jiascu-msftProblem solved. Using your solution as base, I reached a table combining power query.

 

Thanks

View solution in original post

7 REPLIES 7
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

If you want a report visual, you can drag the three columns into a table visual. And then change the summarization of [item] to Don't summarize, of [id] to Maximum, of [state] to Maximum.Filtering history table to have only the last value.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you want a new table, try this formula.

Table =
SUMMARIZE (
    'Table1',
    Table1[item],
    "id", MAX ( 'Table1'[id] ),
    "state", MAX ( 'Table1'[state] )
)

Filtering history table to have only the last value2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello @v-jiascu-msft

 

Your solution almost solved my problem.

Now I do have the table filter as I want, but I need to use a power query function on that table. But due to the fact that the table is created I can not see it on the query editor.

 

How can I use a power query function in this case?

 

Thanks

Anonymous
Not applicable

@v-jiascu-msftProblem solved. Using your solution as base, I reached a table combining power query.

 

Thanks

Omega
Impactful Individual
Impactful Individual

Do you want to filter the table at the query level or report level?

Anonymous
Not applicable

@Omegaat query level. in report level I think will not work due to relationships between tables.

Omega
Impactful Individual
Impactful Individual

Click on Edit Queries ->Choose the table from the left pane -> Filter your ID column

Anonymous
Not applicable

@OmegaI can not do it like that. The table is dynamic, I can not do that with all my ids. I need a "DAX way" or power query.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.