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 have the follwoing table which a fact table but I have reduced the number of columns here.
The goal is to have the calculated columne "Calculated country name" which does the follwoing:
If the number of manufacturers are less than 3 for a selected year in the filter, the column should evlaute the consition for selected year and selected year -1 ,if number of manufactres is less than 3, if yes , "Others", else "Country name".
for example, if 2023 is slected, it evaulated the coniditon for 2023 and 2022 , gives the results.
2024 is sleeected, it evaluated for 2024 and 2023.
the below formula is working if hardcoded but not when applied selected filters. kindly help
| Country | Product name | No.of.Manufacturers | Calculated country name | |
| India | Trolley | 1 | 2022 | Others |
| Malasyia | Frame | 2 | 2022 | Others |
| India | Trolley | 4 | 2023 | Others |
| Malasyia | Frame | 4 | 2023 | Others |
| India | Trolley | 5 | 2024 | India |
| Malasyia | Frame | 6 | 2024 | Malasyia |
Solved! Go to Solution.
Hi @ishwariya11195 - can you please check the below measure based on selected filter, hope it works.
I hope this works.
Proud to be a Super User! | |
Hi @ishwariya11195 - can you please check the below measure based on selected filter, hope it works.
I hope this works.
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |