cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ramachandran
Helper I
Helper I

Scatter chart - Show all the values

Hi, Someone assist me,

I have two dimensions (Country and City) and two fact tables like Fact1 and Fact2.

I'm trying to create scatter chart based on Fact1 (x) and Fact2 (y) values. but few of the Fact2 (Y) values are blank so it not showing all the country on the visual. For this case, Is it possible to show all the Country value? Currently, it is showing 4 countries because of x and y values.

If it is any blank value for X axis and Y axis should be consider as zero. How I can add dummi (zero) value for this? 

 

My current data is look like, 

Ramachandran_0-1620385207369.png

Also, I attached .pbix file here Scatter chart.pbix - Google Drive

 

thanks,

Ram

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Ramachandran  ,

Here are the steps you can follow:

1. Create calculated column.

 

Column =
var _1=
CALCULATE(MAX('Fact2'[Y]),FILTER(ALL(Fact2),[Country]=EARLIER([Country])))
return
DIVIDE([X],_1)

 

Result:

v-yangliu-msft_2-1620722375922.png

2. Create measure.

 

flag =
IF(MAX('Fact1'[Column])=BLANK(),BLANK(),
"X"&"-"&FORMAT(MAX('Fact1'[Column]),"Percent"))

 

3. Result:

v-yangliu-msft_0-1620722479315.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @Ramachandran  ,

Here are the steps you can follow:

1. Create calculated column.

 

Column =
var _1=
CALCULATE(MAX('Fact2'[Y]),FILTER(ALL(Fact2),[Country]=EARLIER([Country])))
return
DIVIDE([X],_1)

 

Result:

v-yangliu-msft_2-1620722375922.png

2. Create measure.

 

flag =
IF(MAX('Fact1'[Column])=BLANK(),BLANK(),
"X"&"-"&FORMAT(MAX('Fact1'[Column]),"Percent"))

 

3. Result:

v-yangliu-msft_0-1620722479315.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

amitchandak
Super User IV
Super User IV

@Ramachandran ,

Create a measure like sum(Fact2[Y])+0  and use

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Thank you for your quick response and it is working fine.

I have one more question, I'm going to create percentage column based on x and y value. Is it possible to apply same thing in percentage field (new measure)?

For example, X - 65% (new measure), Y-75% (new measure)

 

thanks,

Ram

 

 

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors