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
Maradona
Regular Visitor

How to dynamically display monthly and daily metrics on the same visualization

Visualizaiton: Combo Charts

 

We're trying to display show the aggregation of different dimenshions on the same chart, the execpected result looks like following:

 

20201104160221.png

 

And sample data:

 

20201104160450.png

 

Any help would be greatly appreciated

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Maradona 

You can have a column like this in your date table

 

Month Type = Switch( True(),
eomonth(Date[Date],0) = eomonth(Today(),0) ,[Date] , //This Month
[Month Year]
)

Month Type Sort = Switch( True(),
eomonth(Date[Date],0) = eomonth(Today(),0) ,[Date] , //This Month
eomonth(Date[Date],0)
)

 

Sort it Month Type Sort. This will group data monthly and then daily.

 

View solution in original post

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @Maradona 

According to your description, I think you can use the “Drill down” feature in Power BI to achieve this, you can follow my steps:

  1. Create a line and stacked column chart, and place columns like this(you can add a column to line value as you wish):

v-robertq-msft_0-1604558757937.png

 

  1. Click this button on this chart, and you can get what you want:

v-robertq-msft_1-1604558757942.png

 

You can download my test pbix file here

 

Learn more about "Drill through" in Power BI:

https://docs.microsoft.com/en-us/power-bi/consumer/end-user-drill 

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Maradona 

You can have a column like this in your date table

 

Month Type = Switch( True(),
eomonth(Date[Date],0) = eomonth(Today(),0) ,[Date] , //This Month
[Month Year]
)

Month Type Sort = Switch( True(),
eomonth(Date[Date],0) = eomonth(Today(),0) ,[Date] , //This Month
eomonth(Date[Date],0)
)

 

Sort it Month Type Sort. This will group data monthly and then daily.

 

Thank you amitchandak, it works well.

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.