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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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 Supplier
Solution Supplier

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

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.