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.
Hello everyone,
Here's my table 'Approvals':
Index | Submitter | Submitted_datetime | Status | Approved_datetime | FileID |
1 | Anne <removed by Admin> | 4/1/2020 13:00 | Pending | A1009 | |
2 | Anne <removed by Admin> | 4/9/2020 10:07 | Pending | A1001 | |
3 | Anne <removed by Admin> | 4/9/2020 10:07 | Approved | 4/10/2020 12:01 | A1001 |
In my PowerBI report, I only want to display the Pending row if there IS NOT a matching FileID.
If there is a matching FileID, I want to only show the LATEST row with that FileID.
The rows that should display in the report are Index 1 and 3.
All assistance gratefully received.
Sincerely,
Anne
Hi @annetoal ,
Create a calculated column with this code:
I'm sorry, but I don't speak Spanish enough to understand your answer.
Anne
Can there be multiple approvals? If not then you can simply show all rows where FileID is blank or status is approved.
Perhaps if you post a bit more sample data, it would help understanding the use case.
you can create a column like this
countx(filter(table,[Submitter]=earlier(Submitter) && [FileID] = earlier(FileID) && [Status] ="Approved"),[FileID])
You need to get all blank row for this column
Or try a measure like
countX(filter(summarize(table,table[FileID], "_1",count(table[FileID]),"_2", countx(filter( [Status] ="Approved"),table[FileID])+0),[_2]>0),[FileID])
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 |
---|---|
58 | |
58 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |