Forum Discussion

SAG1's avatar
SAG1
Helper I
9 years ago
Solved

Data Modeling help

Hello All   I am very new to Power BI , Please pardon any mistakes , I have to make couple report 1. All auto dealer , with in selected area (predefined Zip Codes) of one Dealer , Sales . 2. All ...
  • v-yulgu-msft's avatar
    9 years ago

    Hi SAG1,

     

    If below result meets your requirement, you could create two measures like:

     

    AllDealerSales = CALCULATE(SUM(DATATable[VIN]),ALLEXCEPT(DealerTable,DATATable[Make Name]))
    SelectedDealerSales = CALCULATE(SUM(DATATable[VIN]),ALLSELECTED(DealerTable[Dealer Name]))

     

    Then, add DATATable[Make Name] and the above two measures into a table visual. 

     

    If I have something misunderstood, please correct me. Please elaborate what does "pass establish relationship between two or not able to pass Seleted Dealer and area as  a parameter to other" mean. What is the relationship? And between which two? And please simplify your source data, take some examples to describe how to calculate "AllDealerSalesinSelectedZip" and "SelectedDealerSalesinselectedZIp".

     

    Regards,
    Yuliana Gu