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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Appy1
New Member

Removing Aggregation when nothing is selected within the Filter

Hi Everyone 🙂

 

Hoping you can help.

 

When no value is selected within a filter(showing as 'all'), i want my 'target' line (red line) to not appear. However when a value is selected i would want the aggregation to take place and the target to be shown.

 

Appy1_0-1715078231393.png

 

Is this possible?

 

Any help is very ,much appreciated.

 

Many thanks

Appy1

1 ACCEPTED SOLUTION
Alex87
Super User
Super User

Hello,

You will need to use an Area chart visual.

X axis: drag Month Column

Y axis : TotalSum = SUM(Table[Value])

Secondary Y axis :  Dynamic Target = IF(ISFILTERED('Table Filter'[FilterName]), "", [TotalSum])

 

In order to get close to your target visual, you will need also to do the following format changes:

Title off

Legend off

X axis title off

Y axis title off, Range minimum fx to a DAX measure you need to create / Y min = MIN(Sol[Value]) * 0.95

Secondary y axis title off , values color of your background, range minimum fx = Y min (same for Y axis)

Shade area choose Target Line and switch show for this series off

Lines TargetLine, line style Dotted, width 2, color of your choice (red)

Lines TotalSum color of your choice (purple), width 2

 

It will look like this and the target line will dissapear when the filter is not selected or selected all

Alex87_0-1715085920820.png

 

If it answers your question, please mark my reply as the solution

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Appy1
New Member

Thank you! @Alex87 

Alex87
Super User
Super User

Hello,

You will need to use an Area chart visual.

X axis: drag Month Column

Y axis : TotalSum = SUM(Table[Value])

Secondary Y axis :  Dynamic Target = IF(ISFILTERED('Table Filter'[FilterName]), "", [TotalSum])

 

In order to get close to your target visual, you will need also to do the following format changes:

Title off

Legend off

X axis title off

Y axis title off, Range minimum fx to a DAX measure you need to create / Y min = MIN(Sol[Value]) * 0.95

Secondary y axis title off , values color of your background, range minimum fx = Y min (same for Y axis)

Shade area choose Target Line and switch show for this series off

Lines TargetLine, line style Dotted, width 2, color of your choice (red)

Lines TotalSum color of your choice (purple), width 2

 

It will look like this and the target line will dissapear when the filter is not selected or selected all

Alex87_0-1715085920820.png

 

If it answers your question, please mark my reply as the solution

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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