cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
poojashribanger
Regular Visitor

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors