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.
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?
Hi @Dunner2020 ,
It would be better to share some sample data and expected result to us.
Best Regards,
Jay
@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]
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |