cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MartijnNL Member
Member

Measure to show sum as constant line for every month

Hello,

 

I want a graph to show a line that shows the sum of all months as a constant line, so not the value of the month on the x-axis, but the sum:lemtpfy1.PNG

 

The current measure for the orange line is: 

CALCULATE (SUM([Amount]); ALL('Calendar'[month]))

 

but the value calculated with 'sum([Amount]) should be presented as a constant horizontal line.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yulgu-msft Super Contributor
Super Contributor

Re: Measure to show sum as constant line for every month

Hi @MartijnNL,

 

Make sure there existing a relationship between Calendar table and data table which contains amount values. Please drag [month] field from 'Calendar' table onto X-axis of chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
v-yulgu-msft Super Contributor
Super Contributor

Re: Measure to show sum as constant line for every month

Hi @MartijnNL,

 

Make sure there existing a relationship between Calendar table and data table which contains amount values. Please drag [month] field from 'Calendar' table onto X-axis of chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 132 members 1,828 guests
Please welcome our newest community members: