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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Cumulative removal and addidtion with Month on Month

Hello All,

 

I am trying to show count of ID in bar chart month wise where i need to show or remove ID based on condition and month.

If the status of an ID is closed or exported then we need to remove those ID's completely from chart month-on-month basis.

for example if month Apr is selected then this ID will appear in Apr Month but if month Apr and May both selected then this ID should not appear in chart as the status is closed in APR month.

 

IDstatusdateTimestampMonthYear
70draft05-04-2023 10:12Apr2023
70draft05-04-2023 12:39Apr2023
70ready05-04-2023 10:12Apr2023
70ready05-04-2023 13:53Apr2023
70draft13-04-2023 10:39Apr2023
70rejected13-04-2023 10:39Apr2023
70ready25-04-2023 09:25Apr2023
70draft28-04-2023 07:15Apr2023
70ready01-05-2023 11:21May2023
70draft02-05-2023 09:28May2023
70ready02-05-2023 13:11May2023
70rejected05-05-2023 08:36May2023
70draft30-05-2023 12:45May2023
70ready30-05-2023 12:48May2023
70closed31-05-2023 11:51May2023
70closed31-05-2023 12:22May2023
70exported31-05-2023 12:22May2023

 

thanks & regards,

Poojashri

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@poojashribanger , Try this measure in visual or visual level filter

 

New measure =
var _tab = Summarize(filter(allselected(Table),Table[Status] ="closed"), table[ID])
return
countrows(filter(Table, Not Table[id] in _tab))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@poojashribanger , Try this measure in visual or visual level filter

 

New measure =
var _tab = Summarize(filter(allselected(Table),Table[Status] ="closed"), table[ID])
return
countrows(filter(Table, Not Table[id] in _tab))

Thank You so much for this.

I have been struggling for this for days.

It's working

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors