Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Atoleto
Frequent Visitor

Different values ​​of the same measure in the table and Mapbox choropleth

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)))

 

q.png

 

 

 

 

 

 

 

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.