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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
arauschdet
New Member

Draw a bar chart using columns with single value

Hello,

I am in the process of discovering what PowerBI allows to do and I am encountering my first real challenge 🙂 

I have a dataset with a list of tasks (lines). Each task can modify one or several document, and each column represents whether a document is impacted by the task, or not. It looks somerhing like this:

Task nameDoc 1 impactedDoc 2 impactedDoc 2 impacted
Task 1Yes  
Task 2YesYes 
Task 3 YesYes
............

Note that a task can impact one or several documents. Now, I'd like to draw a bar chart that plots, for each document (x-axis), the number of tasks that impact it.

I thought about duplicating each task that impacts several documents (and keeping one like per impact), but this doesn't seem very straightforward or practical on the long run.

Is there a more elegant way of doing it ?

 

Thanks for the help.

Aurélien

1 REPLY 1
audreygerred
Super User
Super User

Hello! I suggest having your data formatted differently. It will help with the measure you want, and Power BI does better with narrow long tables versus wide tables (i.e. more rows, less columns).

Here is my suggestion - have a column that lists the task and a column that lists the doc affected - if a task affects 5 documents, it will have 5 rows. Then, you could do a measure like Row Count = COUNTROWS ('YourTable'). With this method I can show how many documents are affected per task and how many tasks are associated with each document: 

audreygerred_0-1724336264305.png

Here is how I would set up the data: 

Task Name Doc Name Impacted
Task 1 Doc 1
Task 2 Doc 1
Task 2 Doc 2
Task 3 Doc 2
Task 3 Doc 3




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.