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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sw123
Helper III
Helper III

Bar chart filtering one bar

Hi,

 

I have a bar chart, where one bar is showing order value average for last 12 month. This I have filtered by filtering the visualization with last 12 months. The axis is showing days (1, 2, 3, etc), like the average of order value for every first day of the month and so on. Order value itself is a measure multiplying two columns of a table.

 

Now I would like to have another bar in the same chart showing the order value for this month. How can I do this?

1 ACCEPTED SOLUTION

@sw123 

 

You may try CALCULATE to change the context.

Measure =
CALCULATE ( [Order value], 'Table'[Date].[MonthNo] = MONTH ( TODAY () ) )

 

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

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @sw123 

 

Make sure you use the right visual "clustered column chart" and simply add another measure to the Values Container of that visual as below.

image.png

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Thank you! I am having problem making the new measure though. Any ideas on how I make a measure to filter another measure with only values for current month?

Mariusz
Community Champion
Community Champion

Hi @sw123 

 

Sure, can you create a data sample and include the expected result, its not easy to understand what you trying to achieve without understanding the scenario.

 

  

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Ok, so this first chart shows the order value this month:

2020-03-23 112119.png

Order value is a measure: 

Order value = SalesTable_[Price]*SalesTable_[Amount]
 
This means that the order value on the 3rd of march has been around 5t.
 
My second chart shows average order value for last 12 months:

2020-03-23 112120.png

This means that the average order value last 12 months for the 3rd each month is around 10t.

 

Now I would like to combine this two charts and thinking that I could add this months bars to the 12 months average bar, if I only could do a measure that filters the order value for this month. 

 

Is this more understandable?

@sw123 

 

You may try CALCULATE to change the context.

Measure =
CALCULATE ( [Order value], 'Table'[Date].[MonthNo] = MONTH ( TODAY () ) )

 

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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