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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
moleo
Regular Visitor

Create a line chart with file o column subtotals

Hi Everyone

I have this table model as an input to  my report: 

 

DomainCountryContractSpendReport_Date
MaintenanceUSYES351256January
MaintenanceUSNO442451January
MaintenanceUK YES354326January
MaintenanceUK NO326885January
MaintenanceGERYES297713January
MaintenanceGERNO490954January
Logistics USYES360023January
Logistics USNO397210January
Logistics UK YES302325January
Logistics UK NO318854January
Logistics GERYES315901January
Logistics GERNO435740January
MaintenanceUSYES396521February
MaintenanceUSNO469540February
MaintenanceUK YES414971February
MaintenanceUK NO258856February
MaintenanceGERYES314071February
MaintenanceGERNO435208February
Logistics USYES471843February
Logistics USNO411614February
Logistics UK YES376039February
Logistics UK NO429307February
Logistics GERYES411857February
Logistics GERNO253510February

 

Monthly the table will be updated,  the first two columns are filters and I want to create a graphic with the subtotals like I use to do in Excel :

 

Something like this:

 

Capture.PNG

As you may see is a KPI with the development over time, but I only achieve this in Power BI with the matrix visualization, when I try to create the line chart it only takes the % over the total, not the files or columns.  Is there any way to do it?

 

Thank you.

 

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hi @moleo ,

 

I glad it worked for you.

 

First I create a measure to sum all amount values where the contract is YES and another where the contract is NO and the value is dividing by the amount of YES and NO (ALL(Table[Contract]), this removes the context filter on this column and get all the values on your table.

 

Another version is using ALL(Table[Report_Date]), it's the same idea, it's not considering the context filter for Report_Date.

 

You can find more functions about context filter in this link:

https://www.infointelligence.com.br/2017/11/13/usando-allexcept-versus-all-e-values/

 

Please, if you consider it as a solution, mark it and kudos.

 

Thank you,

 

Ricardo



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

Proud to be a Super User!



View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @moleo ,

 

Has @camargos88 solved your problem?

If he has, please accept his reply as a solution so that people who may have the same question can get the solution directly.

If not, please let me know.

 

 

Best Regards,
Icey

camargos88
Community Champion
Community Champion

Hi @moleo ,

 

Check this file as an example: Download PBIX 

 

Ricardo



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

Proud to be a Super User!



That was great and fast, Thank you @camargos88 ,  😀 Can you explain to me the solution, I need to escalate this to a KPI with 3 stages "Yes" "Almost Yes" and "No"

 

 

camargos88
Community Champion
Community Champion

Hi @moleo ,

 

I glad it worked for you.

 

First I create a measure to sum all amount values where the contract is YES and another where the contract is NO and the value is dividing by the amount of YES and NO (ALL(Table[Contract]), this removes the context filter on this column and get all the values on your table.

 

Another version is using ALL(Table[Report_Date]), it's the same idea, it's not considering the context filter for Report_Date.

 

You can find more functions about context filter in this link:

https://www.infointelligence.com.br/2017/11/13/usando-allexcept-versus-all-e-values/

 

Please, if you consider it as a solution, mark it and kudos.

 

Thank you,

 

Ricardo



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

Proud to be a Super User!



Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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