Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi guys, I need help with this:
I have this data:
Producto | Women | dateformatted | Productos_MQL_CONS | Desembolsos |
A | S | 21/3/2018 | S | 100 |
A | N | 21/3/2018 | S | 200 |
B | N | 21/3/2018 | N | 500 |
B | N | 21/3/2018 | N | 800 |
D | S | 21/3/2018 | S | 50 |
E | S | 21/3/2018 | N | 100 |
E | S | 21/3/2018 | N | 90 |
A | N | 21/3/2018 | S | 800 |
C | N | 21/3/2018 | S | 400 |
C | N | 21/3/2018 | S | 500 |
C | S | 21/3/2018 | S | 700 |
C | S | 21/3/2018 | S | 600 |
E | S | 21/3/2018 | N | 80 |
D | N | 21/3/2018 | S | 144 |
D | N | 21/3/2018 | S | 255 |
I have this measure:
Producto | Desembolsos |
A | 100 |
C | 1300 |
D | 50 |
Producto | Desembolsos |
A | 1100 |
C | 2200 |
D | 449 |
Thanks
Solved! Go to Solution.
Hi @ArquimedesP ,
From your example I see that this part VW_BT_Desembolsos[dateFormatted]>DATEVALUE("21/03/2018") should be either VW_BT_Desembolsos[dateFormatted]>=DATEVALUE("21/03/2018") or ommited. Otherwise you won't get eny result (I'm looking just at the data sample).
Anyway, if you need to include only products filtered by first measure, but sum all "Desembolsos", you can try this measure:
Measure =
VAR _t =
CALCULATETABLE (
VALUES ( T[Producto] ),
T[dateformatted] >= DATEVALUE ( "3/21/2018" ),
T[Women] = "S",
T[Productos_MQL_CONS] = "S"
)
RETURN
CALCULATE ( SUM ( T[Desembolsos] ), T[Producto] IN _t )
If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @ArquimedesP ,
From your example I see that this part VW_BT_Desembolsos[dateFormatted]>DATEVALUE("21/03/2018") should be either VW_BT_Desembolsos[dateFormatted]>=DATEVALUE("21/03/2018") or ommited. Otherwise you won't get eny result (I'm looking just at the data sample).
Anyway, if you need to include only products filtered by first measure, but sum all "Desembolsos", you can try this measure:
Measure =
VAR _t =
CALCULATETABLE (
VALUES ( T[Producto] ),
T[dateformatted] >= DATEVALUE ( "3/21/2018" ),
T[Women] = "S",
T[Productos_MQL_CONS] = "S"
)
RETURN
CALCULATE ( SUM ( T[Desembolsos] ), T[Producto] IN _t )
If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Thanks a lot! This worked perfectly!
Hey @ArquimedesP ,
I think the filter for [Women] gets you another result.
The following should work:
Desembolsos Version 2 =
CALCULATE(
SUM( VW_BT_Desembolsos[Desembolsos] ),
VW_BT_Desembolsos[dateFormatted] > DATEVALUE( "21/03/2018" ),
VW_BT_Desembolsos[Productos_MQL_CONS] = "S"
)
Thanks, but it didn't work. I have to sum de total of desembolsos for all the products selected in the Measure DESEMBOLSOS MQL 2. I'm thinking using a VAR but it hasnt worked.