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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Frequency

Hi

 

I have a table with these columns:

 

Costumer | Date | Month Number | Sale

 

I would like to select an interval of date (slicer) and bring this number:

How many costumers have purchased at least 1 product in 3 differents months in that selected time interval 

 

PS: sorry for my english, i'm brazilian

2 REPLIES 2
smpa01
Super User
Super User

@Anonymous  no worries mate !!! we speak in DAX here.

Is it possible to provide some sample data and desired output?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Hello again! Sure! thats not the real table because i cant share the information, but is something like this:

 

CostumerProductDate
Costumer 1   Product x   01/10/2021
Costumer 2   Product x01/10/2021
Costumer 1Product x  01/10/2021
Costumer 1Product x  01/09/2021
Costumer 1Product x  01/08/2021
Costumer 2Product x  10/10/2021
Costumer 3Product x  05/09/2021
Costumer 3Product x  10/08/2021
Costumer 3Product x  07/07/2021
Costumer 3Product x  01/11/2021

 

and the output would be: 

When i select a month the card visualization will show how many costumers purchased at 3 differents months in the last 5 months (if i select july for example it will be the 5 months before july)

 

For example (for this data table): 

If i select november, the measure will return 2 costumers, because between november and june 2 costumers purchased in 3 differents months. 

 

Thank you very much!!

 

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.