cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PBIX_COACH
Frequent Visitor

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
Frequent Visitor

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
Frequent Visitor

Nevermind, I figured it out

Ashfiya_Naaz
Resolver II
Resolver II

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

@Ashfiya_Naaz 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
Frequent Visitor

Any help on this one?

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.