Forum Discussion
Anonymous
3 years agoNot applicable
PowerBI Measure repeating rows
Hi, I make a measure to show lost customer, for example : a customer without revenue in date range.
But, for customers how dont have a revenue they make a duplicate rows. How to exclude this repeat?
My measure :
Sales Last period2 =
Var DatumOd = cALCULATE(MIN(Datum[Datum]),ALLSELECTED(Datum))
Var DatumDO = CALCULATE(MAX(Datum[Datum]),ALLSELECTED(Datum))
VAR RazlikaUDanima = DATEDIFF(DatumDO,Datumod-1,DAY)
RETURN
CALCULATE(
IF(
ISBLANK(SUM(OTP[Iznos linije (LVT)])),0,SUM(OTP[Iznos linije (LVT)])),
DATESINPERIOD(Datum[Datum],DatumDO,RazlikaUDanima,day)
)
8 Replies
- lbendlinSuper User
What is your expected result based on the sample data you showed?
- AnonymousNot applicable
You can see that my first comlumn and second repteat because my third colmn make this. I want to see only one row.
- lbendlinSuper User
Remove the trade column or use CONCATENATEX
- lbendlinSuper User
Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216