Forum Discussion
norbi
8 years agoHelper I
Using Ratios between two tables for output depending on Filter
Hi, I would truly appreciate some assistance with a challenge I have been struggling with in Power BI. I would like to get the Customer_Number ratios in Table_1 to split the Year_1, Year_2 and Ye...
- 8 years ago
Zubair_Muhammad
8 years agoCommunity Champion
- Zubair_Muhammad8 years agoCommunity Champion
Here are the Steps
1) Create the relationship between two table using Customer_Type
2) Add the Following Calculated Column in Table 1 to get the %ages on which Targets will be determined
%_age = DIVIDE ( Table1[Customer_Numbers], CALCULATE ( SUM ( Table1[Customer_Numbers] ), ALLEXCEPT ( Table1, Table1[Customer_Type] ) ) )3) Add the Calculated Columns for Targets
Target 1 = RELATED ( Table2[Year_1] ) * Table1[%_age]
and so on for Targets 2 and 3
- norbi8 years agoHelper I
Thank you very much for the feedback and information. The calculation works if you use all e.g. Segments and Shops, however if you would like to see the impact if you take away one Shop or Segment the number remain and do not update for the once selected only. SO what I would like to achieve is to take the Year_1 Numbers and they need to total to the selection made, also if only one or two Shops or segments are selected.
- Zubair_Muhammad8 years agoCommunity Champion