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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I've been trying to calculate a total of a table ignoring all filters but the ones associates with the table "Ciclos".
I achieved my objective using the following:
CALCULATE(Pagos[Ventas],REMOVEFILTERS(Programa),REMOVEFILTERS(Source),REMOVEFILTERS(AdGroup),REMOVEFILTERS(AnuncioKW),REMOVEFILTERS(Medium),REMOVEFILTERS(Paises),REMOVEFILTERS('Lead'),REMOVEFILTERS(Persona),REMOVEFILTERS('Estado Lead'),REMOVEFILTERS('Status Lead'),REMOVEFILTERS('Asesor Retención'),REMOVEFILTERS('Asesor Ventas'),REMOVEFILTERS('Tipo Estudiante Income'),REMOVEFILTERS('Tipo Estudiante Outcome'),REMOVEFILTERS('Tipo Pago'),REMOVEFILTERS('Generación'), REMOVEFILTERS(Materia),REMOVEFILTERS('Forma Pago'),REMOVEFILTERS(Canal),REMOVEFILTERS('Campaña'))
However I think its inefficient. Anyone knows another elegant solution?
Thanks
Solved! Go to Solution.
Basically you can use KEEPFILTERS and REMOVEFILTERS to control tables filters.
Measure = CALCULATE(MAX([Column1]),KEEPFILTERS('Table'),REMOVEFILTERS())
KEEPFILTERS function (DAX) - DAX | Microsoft Docs
REMOVEFILTERS function (DAX) - DAX | Microsoft Docs
Basically you can use KEEPFILTERS and REMOVEFILTERS to control tables filters.
Measure = CALCULATE(MAX([Column1]),KEEPFILTERS('Table'),REMOVEFILTERS())
KEEPFILTERS function (DAX) - DAX | Microsoft Docs
REMOVEFILTERS function (DAX) - DAX | Microsoft Docs
@Infecting91
You can use REMOVEFILTERS() without parameters to remove all filters then add the table as an argument tot CALCUALTE to push the filter.
Measure =
CALCULATE (
Pagos[Ventas],
Ciclos,
REMOVEFILTERS ()
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
98 | |
76 | |
76 | |
48 | |
26 |