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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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])))

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors