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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Um3rJalil
New Member

i want to visualize in power Bi similar to Pivot Chart in Excel

Excel Pivot chartExcel Pivot chart

Hi i make this chart in Excel through Pivot Chart. in this Faults are on X-axis and i compared Before and After same fault.

 

 

chart In power BIchart In power BI

 

Same Data i import in Power Bi and Then made measure to find the percentage of faults and then tried to make the same chart in Power BI just like Excel. but unable to get the same.

 

i need faults in X-Axis and compare before and after same as excel. i tried to put KNOT% in x Axis but it didn't allow me.

 

1 ACCEPTED SOLUTION

@Um3rJalil 

1. in the pq, select the first 5 columns and unpivot other columns

11.png

2. create a measure

Measure = sum(Sheet1[Value])/CALCULATE(sum(Sheet1[Value]),FILTER(all(Sheet1),'Sheet1'[Status]=max(Sheet1[Status])&&Sheet1[Attribute]="Inspected Meters"))

3. in the filter, select the attribute that you want to display

13.PNG14.PNG

pls see the attachment below





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@Um3rJalil 

Add the Status in the Legend section and the faults to be in the X-Axis, 
Add you your measure in the Y-Axis.



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi Fowmy,

 

i tried but unable to do.

you can download the file from given link

https://1drv.ms/f/s!ArmINj1ERH_WjUNoMji-AOFft_Q5?e=UwwmET

hope to hear soon.

@Um3rJalil 

1. in the pq, select the first 5 columns and unpivot other columns

11.png

2. create a measure

Measure = sum(Sheet1[Value])/CALCULATE(sum(Sheet1[Value]),FILTER(all(Sheet1),'Sheet1'[Status]=max(Sheet1[Status])&&Sheet1[Attribute]="Inspected Meters"))

3. in the filter, select the attribute that you want to display

13.PNG14.PNG

pls see the attachment below





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

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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