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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.