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
Anonymous
Not applicable

count value measure based on different criterias

Hi,

 

I need help to create a measure for a tile. I have not been able myself to create it.

 

The table below is used to give an overview if customer A has bought the same items as customers B (Holding Names).

The columns sold and quantity is for each item. The Incoming Order indicates if customer A has bought the same item as customers B. The Count of Holding Names indicates how many of the selected customers B has bought the item.

In this case customers B contains 5 Holding Names.

 

I want the tile to show me how many items has customer A not bought ("0"), which all of customers B has bought. In the table below the tile should say "1".

 

Also, the numbers of holding names in customers B depends on how many the user select froma filter.

 

image.png

 

Hope it makes sense otherwise I will try to elaborate.

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  

 

Thanks for looking into it. I tried your measure and it looks like being somehow close to what I want.

The data is confidential, but I have tried to create some small dummy data in an Excel file together with explanations and a screenshot of the report.

 

Hope it helps the understanding. 

 

 

 

OneDrive link is here.

https://1drv.ms/x/s!AnNqgZEe-Ce5gRTl_9QbpDe0woKd?e=1WxWbk 

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can try to use the following measure to meet your requirement:

 

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            'Items',
            'Items'[ID],
            "Incoming Order Value", [Incoming Order],
            "Holding Count", DISTINCTCOUNT ( 'Items'[Holder] )
        ),
        [Incoming Order Value] = 0
            && [Holding Count] = CALCULATE ( DISTINCTCOUNT ( 'Items'[Holder] ) )
    )
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi  

 

Thanks for looking into it. I tried your measure and it looks like being somehow close to what I want.

The data is confidential, but I have tried to create some small dummy data in an Excel file together with explanations and a screenshot of the report.

 

Hope it helps the understanding. 

 

 

 

OneDrive link is here.

https://1drv.ms/x/s!AnNqgZEe-Ce5gRTl_9QbpDe0woKd?e=1WxWbk 

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.