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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jeyare
Helper II
Helper II

Line chart - daily data (Y) and Months (X) only

I'm struggling with something I haven't needed yet.


I have one aggregate table. In the table, I have (among others) columns "date", "month", "2t", and "date_Range_1".

 

Def:

date = date format
month = string, abbreviated 3-character month name (JAN, FEB, ...)
2t= decimal format
date_Range_1 = decimal, format, these are values from "2t" in the defined range of dates (date), otherwise BLANK. Note: "date_Range_1" values are "Don't Summarize".
I have several such "date_Range_x" columns in the same table.

 

Method:
- axis X = date (date hierarchy by Month)
- axis Y = date_Range_1

 

A problem:
The line chart shows only the defined function for the given month (SUM, AVG, MAX, MIN,...)

What I want to achieve:
1) the line chart will display only the month names on the X-axis from the "month" column in the right order (JAN - DEC).
2) the Y-axis will show daily changes from "date_Range_1" and not their function (SUM, AVG, MAX, MIN,...) for the given month.

Consider that I will use several other "date_Range_x" columns for the same line chart.

Like this one:

jeyare_0-1714379710601.png

 

Thank you in advance.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @jeyare ,

 

Not sure if I understood correctly what you need but believe that you need to create a calendar table and  a measure that gives you the difference between the month and the previous month should be something similar to:

 

Variation =
SUM(Table[Value]) - CALCULATE (SUM(Table[Value]), DATEADD(Calendar[Date], -1, Month))

 

This will allow you to return the value for the comparision.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @jeyare ,

 

Not sure if I understood correctly what you need but believe that you need to create a calendar table and  a measure that gives you the difference between the month and the previous month should be something similar to:

 

Variation =
SUM(Table[Value]) - CALCULATE (SUM(Table[Value]), DATEADD(Calendar[Date], -1, Month))

 

This will allow you to return the value for the comparision.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.