-1

I have the following schema :

enter image description here

I am using a live connection to this SSAS Tabular cube, I want to calculate the % of the Products with Status = Available

for each product comparing to the total of Products with Status=Available.

Amira Bedhiafi
  • 8,088
  • 6
  • 24
  • 60

1 Answers1

1

Something like:

% Products Available = 

VAR NumProductsAvailable = 
    CALCULATE ( 
        DISTINCTCOUNT ( FactTable[ProductSK] ),
        Status[Status] = "Available"
    )

VAR NumProducts = 
    DISTINCTCOUNT ( FactTable[ProductSK] )

RETURN
    DIVIDE ( 
        NumProductsAvailable,
        NumProducts
    )
Olly
  • 7,749
  • 1
  • 19
  • 38