Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I made an additional 'Filter' table in order to substitute different values in the Color field of the Mapbox map and used Fields Parameter as Location.
When I put them in a table view, everything works fine. But Mapbox legend shows part of the data incorrectly.
Value = SWITCH(SELECTEDVALUE('Filter'[Filter by]), "CASH for rent", CALCULATE(COUNTA(data[CASH for rent])), "NFI Kits", CALCULATE(COUNTA(data[NFI Kits])), "WASH Kits", CALCULATE(COUNTA(data[WASH Kits])), "Beneficiaries", CALCULATE(SUM(Data[Number of household members]), FILTER('Data', 'Data'[Amount of aid received]>0)))
Hi @Atoleto
Can you please share some sample data or a sample pbix file (remove sensitive data) so that we can look into it more carefully? And show some expected result based on the sample data.
Best Regards,
Community Support Team _ Jing
User | Count |
---|---|
93 | |
85 | |
78 | |
68 | |
62 |
User | Count |
---|---|
113 | |
99 | |
96 | |
64 | |
58 |