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
ap
Advocate I
Advocate I

How to include specific table dimension value using calculate formula (ignore slicer)?

Hi,

 

I was wondering if this is possible. 

 

I have a table that shows Product Group, Sales and Closed Year.

 

I have a Closed Date Slicer to the report. 

 

Slicer.jpg

 

I would like the Closed Date Slicer to filter the Closed Year BUT ignore the filter if Product Group is C.

 

Essentially, I always want Product Group C to always show up even if I apply a slicer year filter that is not in 2016.

 

Is that possible?

 

Thanks,

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @ap,

 

Please check out the demo in the attachment. No relationship can be established.

Measure =
IF (
    MIN ( 'Table1'[Product Group] ) = "C",
    9999,
    IF (
        MIN ( Table1[Closed Year] ) = SELECTEDVALUE ( Table2[Closed Date Slicer] ),
        2,
        BLANK ()
    )
)

How_to_include_specific_table_dimension

 

Best Regards,

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @ap,

 

Please check out the demo in the attachment. No relationship can be established.

Measure =
IF (
    MIN ( 'Table1'[Product Group] ) = "C",
    9999,
    IF (
        MIN ( Table1[Closed Year] ) = SELECTEDVALUE ( Table2[Closed Date Slicer] ),
        2,
        BLANK ()
    )
)

How_to_include_specific_table_dimension

 

Best Regards,

Dale

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

If you don't need to aggregate totals and your only showing rows with the filter conext of a single product group this shoudl work

 

Write another meaure that is only used to disply in the visual

 

Sales Display = IF(SELECTEDVALUE(Product Group)="C",CALCULATE([Sales],ALL(table[Closed Year])),[Sales]).  

 

 

If closed year is column you may need to do something simalar for "Closed Year"

Closed Year Display = SELECTEDVALUE(table[Closed Year])

 

If you need to have aggregated totals (i.e. you add something before product group like geography and you want to show the breakout by Geogragy and then Product then this won't work and the aggregated totals wont' indluce the broader filter contect for C.  You woudl need to write a few measures for "All Except C" and "C only" using SUMX with filter conidtions.

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.