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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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