Forum Discussion
Sum values in column by condition in Power Bi
hm Analitika
Can you try:
kiekis_test1 =
CALCULATE(
sum(op_detales[qty_in]),
LASTDATE(op_detales[Dokumento data])
)
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
Yeah I am getting 0
- Mikelytics3 years ago
Resident Rockstar
Okay, since the data is coming but the value is zero it ahst to be one fo these filters
Beacuse you measure identifies the right data but the result is zero. This means there further criteria which filter out further rows. It has to be one of those.
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread. - Analitika3 years ago
Post Prodigy
I checked that not affects calculations, I think filter in measure not works well.
- Mikelytics3 years ago
Resident Rockstar
HI Analitika
This is really a normal measure filter Can you please try the following twpo options.
1) Take out all the filter on the visual and look for the result
2) Create a normal SUM measure and filter on the date which you got from last date
Can you please tell what happens?
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread. - Analitika3 years ago
Post Prodigy
Actually I investigated interesting thing like that measure works if filter document number, it calculates well, but problem with data, when comparing. I can't get why it happens?
- Analitika3 years ago
Post Prodigy
Filtering works well with other columns, with date it doesn't work. So seems problem is with date.