cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PBIX_COACH
Helper I
Helper I

Dax Solution to show New, Active and Closed

Hello Team,

 

I need some help with a DAX solution. I have a running table that has all my stores and a date that shows sales and is connected to a calendar date table. When a store closes, it will remain in the source spreadsheet with the last transaction date. I need to be able to create a stacked bar chart that shows Active Stores (stores not closed), New stores, and stores closed for each respective month.

 

See attached screenshot for the life cycle of one store

 

Screenshot 2022-08-12 142345.png

1 ACCEPTED SOLUTION
PBIX_COACH
Helper I
Helper I

Nevermind, I figured it out

View solution in original post

5 REPLIES 5
v-binbinyu-msft
Community Support
Community Support

Hi @PBIX_COACH ,

I am really pleased that your issue has been fixed. Would you kindly share with us about your solution here? In this way, it will be beneficial to other community members as well.

 

Best regards,
Community Support Team_ Binbin Yu

 

PBIX_COACH
Helper I
Helper I

Nevermind, I figured it out

Anonymous
Not applicable

Hi @PBIX_COACH ,

 

Can you be more specific ? How will we know if the store is closed?

If last Date is filled does it mean the store is closed ?

 

 

Regards,

Ashfiya

@Anonymous Essentially if the store dose not have a sale date in future month so for example the store shows a sale date for Jan 2021 but nothing for Feb 2021 going forward. I have a master store list and a calendar dimension table that looks into the monthly file but I can seem to figure out how to land the right approach 

PBIX_COACH
Helper I
Helper I

Any help on this one?

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!