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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ashamsuzzoha
Helper III
Helper III

Ayuda con allexcept() en un crossfilter

Quiero trazar una medida por tiempo y un promedio de esa medida sin un crossfilter aplicado. Table1 es un extracto de la tabla de hechos. Table2 es una mesa tenue. La medida 2 se supone que es la Medida 1, pero ignorando cualquier filtro de División.

tabla1

Alimentadorañovar1var2var3
11242015No1141566
112420151141566
11242016No513167
11242016067
11242017No9167
112420179167
11242018No2760467
112420182760467
11242019No1561867
112420191478867
103062015No103180672
10306201596634672
103062016No151865684
103062016141609684
103062017No732202683
103062017310553683
103062018No363365692
103062018126651692
103062019No125559699
103062019123130699
130142015No66386976
13014201529464976
130142016No20955977
13014201620955977
130142017No2784341025
130142017282371025
130142018No1308101089
1301420181253531089
130142019No395871126
130142019394701126
143462015No1945261080
1434620151939321080
143462016No501841083
143462016431261083
143462017No2642051084
1434620172169481084
143462018No4431421073
1434620183126031073
143462019No3044661073
1434620192760031073

tabla 2

AlimentadorDivisión
1124A
10306B
13014C
14346D

Measure1 = 
CALCULATE(
    DIVIDE(
        SUM('Table1'[var2]),
        SUM('Table1'[var3])
    ),
    'Table1'[var1] = "Yes"
)
Measure2= 
CALCULATE(
    [Measure1],
    ALLEXCEPT(
        'Table1', 
        'Table1'[Year].[Year],
        'Table1'[var1]
        )
)

Pero cuando pongo comparar measure1 y measure2, no está ignorando el crossfilter.

No filtrado

añoMedida1Medida 2
2019152.9152.9
2018202.7202.7
2017194.4194.4
201673.273.2
2015118.6118.6

Filtrada

añoMedida1Medida 2
2019176.2176.2
2018183183
2017454.7454.7
2016207207
2015143.8143.8

Básicamente, quiero trazar Mesure1 desde Filtrado y Medida2 desde No filtrado solo con DAX. ¿Puede alguien ayudarme? Gracias

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hola

¿Funciona?

Measure2 - calculate([measure1],all('Table1'[Division]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hola

¿Funciona?

Measure2 - calculate([measure1],all('Table1'[Division]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Creo que querías escribir "table2[división], pero sí, eso funcionó. Gracias

De nada.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ashamsuzzoha
Helper III
Helper III

Golpe

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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