The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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! | |
User | Count |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |