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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors
Top Kudoed Authors