Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, I have the following measure to count unique values but I need the measure to ignore any other filters on my visual.
= DISTINCTCOUNT(ResellerSales[SalesOrderNumber])
I have tried to include the ALL function which partly works but every single row in my matrix has the same total count.
While I need it to ignore filters, I need it to still show the row context as each row in my table has an account number: = (ResellerSales[AccNo])
Thanks
Solved! Go to Solution.
The question context is vague, but, try something like this:
Result =
CALCULATE(
DISTINCTCOUNT(ResellerSales[SalesOrderNumber]),
KEEPFILTERS( 'filter to keep' ),
REMOVEFILTERS( 'filters to remove' )
)
The ALL() function should work. I can offer more help if you share the download link of your PBI file and show the expected result.
The question context is vague, but, try something like this:
Result =
CALCULATE(
DISTINCTCOUNT(ResellerSales[SalesOrderNumber]),
KEEPFILTERS( 'filter to keep' ),
REMOVEFILTERS( 'filters to remove' )
)