Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hola
Tengo dos tablas de ejemplo aquí.
Table1 tiene una lista de personas (1 y 2) y sus números mágicos.
Table2 tiene una lista de personas (1 y 2) y los números que deben ignorar.
¿Cómo creo una medida que me da la suma de números con la excepción (no menos) del número que se debe ignorar?
Preferiblemente usando menor que y mayor que en if instrucción.
Solved! Go to Solution.
Hola @Preben ,
Por favor, intente así:
Measure =
CALCULATE(
SUM(Table1[Hours]),
FILTER(
Table1,
Table1[Date] <MAX(Table2[StartDate]) || Table1[Date] > MAX(Table2[EndDate]) ))
@Preben solución adjunta, es una manera de hacer esto.
Me gustaría❤ elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Gracias parry2k, pero no sé si resolverá mi problema. Especificé el uso de if y mayor que/menos que para poder aplicarlo a mi informe real. Creo que esas funciones son imprescindibles.
Aquí está un ejemplo del caso real, y aquí está un enlace a un archivo .pbix de prueba
En mi informe, si las horas en la fecha de la tabla izquierda están en o entre StartDate/EndDate, no deben incluirse en la suma.
Hola @Preben ,
Por favor, intente así:
Measure =
CALCULATE(
SUM(Table1[Hours]),
FILTER(
Table1,
Table1[Date] <MAX(Table2[StartDate]) || Table1[Date] > MAX(Table2[EndDate]) ))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.