The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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.
If you want a new table, try this formula.
Table = SUMMARIZE ( 'Table1', Table1[item], "id", MAX ( 'Table1'[id] ), "state", MAX ( 'Table1'[state] ) )
Best Regards!
Dale
@v-jiascu-msftProblem solved. Using your solution as base, I reached a table combining power query.
Thanks
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.
If you want a new table, try this formula.
Table = SUMMARIZE ( 'Table1', Table1[item], "id", MAX ( 'Table1'[id] ), "state", MAX ( 'Table1'[state] ) )
Best Regards!
Dale
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
@v-jiascu-msftProblem solved. Using your solution as base, I reached a table combining power query.
Thanks
Do you want to filter the table at the query level or report level?
@Omegaat query level. in report level I think will not work due to relationships between tables.
Click on Edit Queries ->Choose the table from the left pane -> Filter your ID column
@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.