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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Line Graph to start with zero at the beginning

Hello All,

 

I need some help on this. I have a treemap that displays all the system in my organization with their yearly score. Then i have a corresponding line graph that displays the monthly broken down score when a system is selected in the treemap. What is currently happening is when the report is open , the treemap shows everything (which is what i want) but the line graph shows SUM of all the scores for all the system totaled up. I dont want that. T just want it to show 0 for all the months (when nothing is selected) and then when a system is selected in the treemap, display its corresponding monthly value in the line graph. How do i do so?

 

I dont have a URL where i can post the screen shots , sorry.

 

Thank you!

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

create a measure and check if system has only one value.

https://docs.microsoft.com/en-us/dax/hasonevalue-function-dax

Measure =IF(HASONEVALUE(Table[system]),
		SUM(Table[value]),
		BLANK())

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

create a measure and check if system has only one value.

https://docs.microsoft.com/en-us/dax/hasonevalue-function-dax

Measure =IF(HASONEVALUE(Table[system]),
		SUM(Table[value]),
		BLANK())

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

Thank you so much sir, you solved my biggest issue. Awedome job

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.