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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dunner2020
Post Prodigy
Post Prodigy

Displaying monthly and daily values on same chart

Hi there,

 

I am plotting a few graphs using an area chart. The x-axis contains Month name. The graphs always show the value up to last month. For example, Today (i.e. 29-10-2020) graphs present on the area chart show values of until 30-09-2020. I have created a measure that calculates value up to date (let's call this measure as measure1). Now I want to display measure1 on the same area chart. The problem is that x-axis contains month name and I want to show the date when displaying measure1 on the chart because the value of measure1 changing everyday unlike other graphs of the area chart (which changes once a month). Is there any smart way that I could display daily values with monthly values in the same chart?

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Dunner2020 ,

 

It would be better to share some sample data and expected result to us.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Dunner2020 , Assume you want data till last month monthly and this month daily.

You can have a column like this in your date table

 

Date new  = if([date]<=eomonth(today(),-1), eomonth([date],0),[date])

this will give only one last date for all past month

 

also you can have column like

Date Text with Month= if([date]<=eomonth(today(),-1), format([date],"MMM-YYYY"),[date]&"")

 

This you can use in visual . Sort [Date Text with Month] on [Date new]

AllisonKennedy
Super User
Super User

You could try using tooltips or report page tooltips, otherwise is there a reason you need this information to be on the same chart? Maybe it could work to have another chart just for this month that displays the daily data?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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