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
bb72
Regular Visitor

Ignore Slicer in measure

Probably the easiest question of today, had a look at the other questions on this but still struggling.

 

Trying to count the no of values (dates) in a column, but for this count to stay static regardless slicers etc then show how many values in the previous quarter.

 

My measures:

 

Total Values = CALCULATE(COUNTA('bi-import'[Values]))

Last Q = CALCULATE([Total Values], DATEADD('bi-import'[Values].[Date], -1, QUARTER))

 

However, my slicers are reducing the values/counts.

 

Where do I slot in the ALL function exactly for it to ignore the slicers? Thank you!

2 ACCEPTED SOLUTIONS
v-sihou-msft
Employee
Employee

@bb72

 

If you just need to calculate those values for previous quarter, you can directly try PREVIOUSQUARTER() function in CALCULATE().

 

Previous Quarter Total Values =
CALCULATE (
    COUNTA ( 'bi-import'[Values] ),
    PREVIOUSQUARTER ( 'bi-import'[Date] )
)

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@bb72

 

If you just need to calculate those values for previous quarter, you can directly try PREVIOUSQUARTER() function in CALCULATE().

 

Previous Quarter Total Values =
CALCULATE (
    COUNTA ( 'bi-import'[Values] ),
    PREVIOUSQUARTER ( 'bi-import'[Date] )
)

Regards,

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.