Forum Discussion
how to retrieve selected values from another table (with no relationship)
- Anonymous5 years ago
Here are the steps you can follow:
1. Enter the Power query through Transform data, add Index to the two tables respectively, and select Add column – Index Column.
2. Create calculated column.
Q1 = IF( 'Sales BR'[Index] in SELECTCOLUMNS('Sales',"1",'Sales'[Index]), SUMX(FILTER(ALL('Sales'),'Sales'[Index]='Sales BR'[Index]),[Q1]), DIVIDE( SUMX(FILTER(ALL(Sales),'Sales'[type]="new users"),[Q1]), SUMX(FILTER(ALL(Sales),'Sales'[type]="users"),[Q1]) ))Q2 = IF( 'Sales BR'[Index] in SELECTCOLUMNS('Sales',"1",'Sales'[Index]), SUMX(FILTER(ALL('Sales'),'Sales'[Index]='Sales BR'[Index]),[Q2]), DIVIDE( SUMX(FILTER(ALL(Sales),'Sales'[type]="new users"),[Q2]), SUMX(FILTER(ALL(Sales),'Sales'[type]="users"),[Q2]) ))3. Result:
Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
You can use "Replace Values" in the power query to change those line names, and you don't need to have another table (even if you need another table, you can create a duplicate table and change the values there).
check these links:
https://yodalearning.com/tutorials/learn-how-replace-values-power-query/
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!