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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calcular+filtro+max error

Sólo estoy usando la siguiente fórmula para calcular Rev/Sqft por Catogory por DataMth (mes de datos)

00This_month_R.S á CALCULATE( ('Table'[00Rev]/'Table'[Sqft]),filter(ALLSELECTED('Table'),'Table'[DataMth]<'max('Table'[DataMth])))
Descubrí que cuando elijo una catoría, entonces la respuesta es correcta, totalmente lo mismo con la respuesta de Excel.
DataMth
Catoría201911201912202001202002
A705.2295705.2643528.5895448.5803

Pero cuando elijo toda catogoría, encontré que todos los datos de columna son los mismos, no filtra por catogoría, ¿se pierde algo en mi fórmula? Muchas gracias.

DataMth
Catoría201911201912202001202002
A393.8481424.5263373.781337.5545
E393.8481424.5263373.781337.5545
G393.8481424.5263373.781337.5545
H393.8481424.5263373.781337.5545


1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Harry_chai

00This_month_R.S = CALCULATE( ('Table'[00Rev]/'Table'[Sqft]), filter(ALLEXCEPT('Table', 'Table'[Catogory]), 'Table'[DataMth]<=max('Table'[DataMth])))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Harry_chai

Mover el mes a una mesa separada

Tratar

This_month_R.S á CALCULATE( divide('Table'[00Rev],'Table'[Sqft]),filter(ALLSELECTED('Month'),'Table'[DataMth]<'max('Month'[DataMth])))

O
This_month_R.S- CALCULATE( divide(sum('Table'[00Rev]),sum('Table'[Sqft])),filter(ALLSELECTED('Month'),'Table'[DataMth]<'max('Month'[DataMth])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Gracias, lo intenté, pero parece que el resultado no es correcto, más pequeño de lo que debería ser.

az38
Community Champion
Community Champion

@Harry_chai

00This_month_R.S = CALCULATE( ('Table'[00Rev]/'Table'[Sqft]), filter(ALLEXCEPT('Table', 'Table'[Catogory]), 'Table'[DataMth]<=max('Table'[DataMth])))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

¡Gracias, funciona!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.