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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
BotBot1
Helper III
Helper III

Company Counting

Hi,

I have the below clustered bar chart visual. I have a table called ApprovalLog with [Actions] as my y-axis ("accept" or "reject"), count of [CompanyId] as my x-axis and a Small Multiple of [Section] which is 4 sections that companies go through acceptance/rejection of ("a", "b", "c" and "d"). 

BotBot1_0-1692366997460.png

 

It is currently counting companies where they have had an action in any of the sections, but I need the count of the CompanyId's to be the by the latest date of each section. E.g. If a company has had an Action of "accept" from section a and a "reject" from section a also, but the accept is more recent, i need the company excluded from section a "reject" in the visual. Please see the below example:

BotBot1_1-1692368635628.png

For example, for this company, I would like the company counted for the top 4 rows but not the bottom one as the DateCreated was earlier than the more recent section a (earlier in the day in this example). 

Please let me know if you need any other information/clarification, thank you.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can use a calculated table to implement that grouping logic. Then feed the visual off that table.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

You can use a calculated table to implement that grouping logic. Then feed the visual off that table.

Yep thought so, going to have to! Thank you

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.