Forum Discussion

Daxmon_23's avatar
Daxmon_23
Frequent Visitor
3 years ago
Solved

intersection problem

Hello everyone. I am a bit new to Power BI, I am working on a project that consists of how two brands coexist in different points of sale. Año Mes punto venta ventas PRODUCTO A ventas PRODUCT...
  • v-yinliw-msft's avatar
    3 years ago

    Hi Daxmon_23,

     

    You can add a measure like this:

    SellTwoPlaces =
    
    CALCULATE (
    
        COUNTROWS ( 'Table' ),
    
        FILTER (
    
            'Table',
    
            AND (
    
                NOT ( ISBLANK ( 'Table'[ventas PRODUCTO A] ) ),
    
                NOT ( ISBLANK ( 'Table'[ventas PRODUCTO B] ) )
    
            )
    
        )
    
    )

    The result is:

     

    Hope this helps you.

    Here is my PBIX file.

     

    Best Regards,

    Community Support Team _Yinliw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.