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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Chitemerere
Responsive Resident
Responsive Resident

Power BI Chart Ploting

I have the following visual generated by my survery tool based on the question below

 

DosageForms.PNG

The data responses are as follows, please note that a responded can choose more than one responses:

 

ResponsesDosage.PNG

 

I am failing to reproduce a similar plot in Power BI.  How can i plot a chart like the above in Power BI.  Please note that the data is in the form of a Power BI  Service "Dataset" collected using Microsoft Forms and sent to Power BI Service.

 

Regards,

Chris

1 ACCEPTED SOLUTION
Chitemerere
Responsive Resident
Responsive Resident

I had to use measures calculated as follows for the appropriate measure:

 

Capsules = CALCULATE(COUNTROWS(), FILTER(ALL(RealTimeData), SEARCH("Capsules",
RealTimeData[PMQSDosageForms],, BLANK()) > 0 ))
 
This worked for me.
 
Regards,
Chris

View solution in original post

5 REPLIES 5
Chitemerere
Responsive Resident
Responsive Resident

I had to use measures calculated as follows for the appropriate measure:

 

Capsules = CALCULATE(COUNTROWS(), FILTER(ALL(RealTimeData), SEARCH("Capsules",
RealTimeData[PMQSDosageForms],, BLANK()) > 0 ))
 
This worked for me.
 
Regards,
Chris
amitchandak
Super User
Super User

@Chitemerere , difficult to say without data. But what you have seemed like legends.  Put that column as a legend. Maybe you skip x-axis

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you very much and most appreciated.  I have recreated the question with the actual data response.

 

Regards,

Chris

westwrightj
Resolver III
Resolver III

Hey Chris,

 

   If you can provide an example of how your data is structured I can give you a more focused and in-depth answer.

 

   In general though you could use the bar chart visual.

 

    Create a measure that counts the number of responses, so something like Count(Table[ID]). Use that measure in the values area of the bar chart Then use the column that contains your risk elements for the legend field.

 

   To get the legend to be on the left hand side you can go into the visualization properties and select left center.

 

   Hopefully that was helpful, if you can send along a data example I can shoot you back some dax and screen shots

Thank you very much, most appreciated.  I have recreated the question giving the actual data response.

 

Regards,

Chris

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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