Forum Discussion

MHac's avatar
MHac
Regular Visitor
3 years ago

Matrix Visual - possible to add 2 different Dimension into columns

Hello,

 

I try the following with the matrix visual:

I want to visualize the amount of different products by month and by distribution group in one matrix

 

AmountJanFebMarEMAILPHONESHOP
Produkt 1100300400100 700
Produkt 2200 3005050400
Produkt 3500 500100100300
...      
...      

 

It is a star schema where the Produkts are in the Produkt_Dimension, the months belong to the Calendar_DIMENSION and the Distribution Channels belong to the DISTRIBUTION_DIMENSION. The Amount is in the facts.

I don't find a way to include the second grouping (distribution Channel).

Is this possible with the matrix visual?

 

best regards

Marco

3 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi MHac 
    You need to CROSSFILTER the relationship between DISTRIBUTION_DIMENSION and FACT. Something like

    =
    CALCULATE (
        SELECTEDVALUE ( DISTRIBUTION_DIMENSION[Column] ),
        CROSSFILTER ( DISTRIBUTION_DIMENSION[PrimaryKey], FACT[ForeignKey], BOTH )
    )
    • MHac's avatar
      MHac
      Regular Visitor

      Thanks for this idea -I will try and let you know.

       

      best regards

  • v-xiaotang's avatar
    v-xiaotang
    Icon for Community Support rankCommunity Support

    Hi MHac 

    Thanks for reaching out to us.

    I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

    If you need more help, please let me know.

     

    Best Regards,

    Community Support Team _Tang

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