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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Seer_Bug
Helper I
Helper I

Change series chart type in Power BI service

In power Bi service , I am trying to get a line chart with error% trend month on month . However apart from% of grand total , i am unable to find any other options.

 

As per the below example , Line chart should show :

Overall error % for Apr month for USA is 50% ( 2 error opportunity and 1 error made ) 

Overall error % for May month for USA is 100% ( 1 error opportunity and 1 error made)

Overall error % for Apr month for UK is 0% ( 1 error opportunity and 0 error made)

 

@amitchandak @v-xuding-msft 

I have a raw data like shown  below :  

Request numberLocation/SiteMonthError OpportunityErrorError%  = (error count _yes/error Opportunity)
1USAApr1Yes100%
2USAApr1No0%
3UKApr1No0%
4USAMay1Yes100%
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Seer_Bug , Try like

DIVIDE(CALCULATE(sum(Test[Error Opportunity]),Test[Error] ="Yes"),CALCULATE(sum(Test[Error Opportunity])),0)
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Seer_Bug , Try like

DIVIDE(CALCULATE(sum(Test[Error Opportunity]),Test[Error] ="Yes"),CALCULATE(sum(Test[Error Opportunity])),0)
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

thanks @amitchandak . this worked.

1.however its not showing %, instead showing as 0.5 and 1.0. how do i get this as % ( I am new to PBI).

2.If I have multiple tables with similar data and if want to consolidate 4 tables with overall error % - how do i use a similar formula)

 

@Seer_Bug , Just like excel, if make it % type. It will display as % (*100). Or  multuple by 100.

 

As log as you have common dimesion and you do not have multiple number , you can do it easily. 

 

In case of multiplication you need to force row context. But that does not seems a need as of now. 

 

Data Format New Rib.png

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.