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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBIX_COACH
Helper II
Helper II

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 II
Helper II

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 II
Helper II

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 II
Helper II

Any help on this one?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors