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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Solution Specialist
Solution Specialist

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

 

View solution in original post

2 REPLIES 2
Appy1
New Member

Thank you! @Alex87 

Alex87
Solution Specialist
Solution Specialist

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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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