Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I want to analyze trend of change from year to year
| Customer | 2018 | 2019 |
| AA01 | Satisfied | Dissatisfied |
| BB01 | Dissatisfied | Satisfied |
| CC01 | Satisfied | Satisfied |
Both 2018 and 2019 are 2 different table.
The satisfaction is based on formula below
Hi @sglee
First, obviously you need relationships between 2018, 2019 and customer tables.
I guess, the Customer field should be the key for these relationships
If Im right you could create a columns in the CustomerTable like
ColumnSatToDis = CALCULATE(Countrows('CustomerTable'),
FILTER(ALL('CustomerTable'),
RELATED('Table2018'[Satisfaction])="Satisfied" && RELATED('Table2019'[Satisfaction])="Dissatisfied"
)
)and
ColumnDisToSat = CALCULATE(Countrows('CustomerTable'),
FILTER(ALL('CustomerTable'),
RELATED('Table2019'[Satisfaction])="Satisfied" && RELATED('Table2018'[Satisfaction])="Dissatisfied"
)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @az38
Yes, table 2018 & 2019 relationship is built by Customer Code in both table.
However, I unable to set up the below
RELATED('Table2018'[Satisfaction])="Satisfied" && RELATED('Table2019'[Satisfaction])="Dissatisfied"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |