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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Show customer data for selected months

Hi Team

 

I have a table with customer name, Month like 2018 07-Jul,Order id. Suppose I select Months as May, June and July(in the mentioned format 2018 07-Jul), I only want to show those customer name who have a order for all the selected months. Suppose customer Alex has order id's for May,June and July then show Alex and John has order in June and July then don't show John.

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Stachu @GilbertQ 

 

If I select 1 month can we show only thoe customers who have sales in the last 3 months. Suppose if I select Aug it should show customers who have made sales in June,July and Aug.

Hi there,

This could possibly be done. The challenge is understanding what is selected and to then go back 3 months based on what month you have selected.

Do you has some sample data and the expected result?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Stachu
Community Champion
Community Champion

try putting this measure in the visual filter while filtering to TRUE

Measure = 
VAR SelectedPeriods =
    ALLSELECTED ( 'Table'[Month] )
VAR PeriodsPerCustomer =
    SUMMARIZE ( 'Table', 'Table'[Month], 'Table'[Customer] )
RETURN
    IF (
        COUNTROWS ( SelectedPeriods ) = COUNTX (PeriodsPerCustomer, [Month] ),
        TRUE,
        FALSE
    )


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

Hi @Stachu @GilbertQ

 

I have used the DAX you mentioned as a measure instead of TRUE(), I have CALCULATE(COUNT(column),ALLSELECTED(MONTH)) so its working fine for selected 3 Months but its not showing the breakdown for the users for the 3 selected months.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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