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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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