cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
khush19
Resolver I
Resolver I

POWERBI : Show Amount greater than zero on Map

Hi ,

 

I am working with Mapbox in POWERBI and mode is PUSH ataset so only can create Measure .

 

In my scenario suppose,

8 AM  0$,-37.8136 and 144.9631 (send to powerBI as no transaction Happened and latitude and longitude are customer specific to show centrepoint on map)

9 AM 10$,-37.802730930983344,144.96049156624548 (send to powerbi )

10AM 20$,-37.80273093098666,144.96049156624599  (send to powerbi )

So if amount greater than 0 is send i dnt want 0$ to be shown on Map, means i dnt want (0$,-37.8136 and 144.9631) to be shown on POwerBI.

 

Problem I am facing as in PUSH dataset i can only write measure .

 

I tried to create a measure where

if sum is greater than 0 and individual amount is greater than 0 then return amount  

 

AmountUpdated = IF(x[Amount]>0,MAXX(FILTER(x,x[Amount]>0),x[Amount]),MAXX(x,x[Amount]))
 
But still on map i see record for 0$
1 ACCEPTED SOLUTION
khush19
Resolver I
Resolver I

created below measure and it is working

CentrepointAmount =
if(CALCULATE(SUM(X[Amount]),ALLSELECTED(x))>0,
if(x[Amount]>0,x[Amount],BLANK()),x[Amount])

View solution in original post

5 REPLIES 5
khush19
Resolver I
Resolver I

created below measure and it is working

CentrepointAmount =
if(CALCULATE(SUM(X[Amount]),ALLSELECTED(x))>0,
if(x[Amount]>0,x[Amount],BLANK()),x[Amount])
amitchandak
Super User
Super User

@khush19, have you tried a visual level filter of >0 

 

or a measure like add all group to summarize and use the measure you want

maxx(filter(summarize(Table, Table[Map Group1], Table[Map Group2], "_1", [Measure]), [_1]>0), [Measure])



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

HI Amit,

 

I cann't apply Visual level filter as for some customer we can have no transaction, So 0$ on map will show centrepoint on map

@khush19 , then you have to try with summarize with appropriate filters.

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Hi Amit,

 

I am not able to share pbix ,but below is data

CustomerIdAmountLatitudeLongitudeHour
A10-37.8136144.96317:00
A30-37.813645144.963146:00
A0-37.813623144.96313315:00
B0-36.8136143.96315:00

Now when i show on map ,i use Amount,latitude,longitude

for Customer A as we have Amount >0, then we dnt want row 3 to be shown on map

but for customer B as there is no amount >0 then we want to show row 4 on MAP

 

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors