cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
QuantusPools
Frequent Visitor

Filter Single Column

We are trying to figure out if a customer has signed up for a service by determing if they have a certain charge on a pending invoice.

 

Product A = 1, 2, 3

Product B = 4, 5 6

 

Product A Category = Opening

Product B Category = Closing

 

Customers can have any combination of the above mentioned products and I need filters with a customer count for the following measurements.

 

Opened but didn't close (ONLY PRODUCT A BUT NOT PRODUCT B)

Opened AND Closed (PRODUCT A AND PRODUCT B - ANY COMBINATION)

Closed but didn't Open (PRODUCT B BUT NOT PRODUCT A)

 

Each customer has a customer ID as the unique idenftifier.  

 

I have tried a few ways but I can't get the 2nd one to work (opened and closed)

 

= calculate ( distinctcount (customer id), filter ( category = "Opened > Opened - General" || " Closed > Closed - General")

 

I'm really lost how to make this work.  Any help would be apprciated. 

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @QuantusPools ,

 

You need to provide the corresponding information according to the requirements in the following blog, I will answer you as soon as possible.

 

How to Get Your Question Answered Quickly - Microsoft Power BI Community


Best Regards,
Henry

 

QuantusPools
Frequent Visitor

Here's some sample data

 

Item CodeMember StatusCreated DateInvoice DateCategoriesCustomer ID
O-POOLInactive1/21/20215/8/2021Opening > Opening - General12283953
C-POOLInactive8/26/2021 Closing > Closing - General12283953
O-POOLActive3/8/20214/21/2021Opening > Opening - General12283971
C-POOLInactive8/30/2021 Closing > Closing - General12283979
O-POOLActive2/18/20215/4/2021Opening > Opening - General12283984
O-POOLSPAActive1/21/20214/30/2021Opening > Opening - General12283992
O-POOLActive3/12/20215/6/2021Opening > Opening - General12284008
C-POOLActive9/7/2021 Closing > Closing - General12284008
O-POOLActive3/2/20214/24/2021Opening > Opening - General12284017
C-POOLActive9/8/2021 Closing > Closing - General12284017
O-POOLInactive1/27/20214/12/2021Opening > Opening - General12284037
C-POOLSPAActive9/15/2021 Closing > Closing - General12284038
O-POOLInactive2/8/20215/21/2021Opening > Opening - General12284044
C-POOLInactive8/30/20219/14/2021Closing > Closing - General12284044
C-POOLActive8/28/2021 Closing > Closing - General12284048
O-POOLActive5/6/20215/8/2021Opening > Opening - General12284048
O-POOLSPAActive4/27/20214/30/2021Opening > Opening - General12284051
C-POOLSPAInactive8/25/2021 Closing > Closing - General12284058
O-POOLSPAActive5/18/20215/25/2021Opening > Opening - General12284065
O-POOLActive5/24/20215/15/2021Opening > Opening - General12284068
O-POOLInactive3/17/20215/3/2021Opening > Opening - General12284071
C-POOLInactive9/14/2021 Closing > Closing - General12284071
O-POOLSPAActive4/12/20215/7/2021Opening > Opening - General12284077
vanessafvg
Super User
Super User

can you share the data in text form how it would look in a table?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors