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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
akash_mishra123
Regular Visitor

Adding a value in a chart which is not present.

Hi Everyone,

 

I am new in Power BI and got stuck in an Issue.

 

I have a data in which I will have to show count of no of occurence of particular choices.

Example - There are 50 persons who had to respond in a scale of 1 to 5, where 1 is Extremely Satisfied and 5 is not at all satisfied,

 

out of those 50 respondents 8 persons have selected 1(Extremely satisfied) , 10 persons have selected 2 , 26 persons have selected 3 , and 6 persons have selected scale 4, where as none of the persons have selected 5(Extremely Not Satisfied).

I want to Visualize a chart where I can show all the scale value irrespective of the fact whether the user has selected it or not.

 

basically my data is in the below format :-

 

Selected response                     Respondents Name

1(Extremely Satisfied)                Rock

1(Extremely Satisfied)                Mike

2                                                 Jorge

.                                                   .

.                                                   .

.                                                   .

.                                                   .

 

 

and there is a scale 5 which no respondent has selected but when I am taking the count of the selection , I am not able to show Zero for scale value 5 as it does not exists in the data, But as per requirement I need to show that as well,

 

I know this might be some silly question but I am not able to figure out any way to resolve this, Any help in this case will be much appreciated.

 

 

 

1 ACCEPTED SOLUTION

Thanks alot @Greg_Deckler for your help.

 

I got the way around and solved the issue. 

 

Regards,
Akash

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Very difficult to provide specifics here. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

But, in general you can solve these kinds of problems by creating your measure with an IF statement that if it is going to return BLANK, (ISBLANK) return 0 instead.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks alot @Greg_Deckler for your help.

 

I got the way around and solved the issue. 

 

Regards,
Akash

Awesome!



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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