Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi guys!
I need to create a measure that counts column "Repetidos" only once per order number (NroPedido2).
Currently the measurement is repeated for all lines.
As we can see in the image we only have 2 order numbers (001510529792R7 and 001510529792R6), I need the measurement to count only 1 time for each order.
My measurement x counts the number of orders that are repeated on a different day.
Thanks for help!
Solved! Go to Solution.
HI @yforti
Try this:
Repetidos =
VAR UniqueOrdersPerDay =
SUMMARIZE(
iFrame,
iFrame[NroPedido2],
iFrame[DateSession - Copiar],
"OrderCount", COUNTROWS(iFrame)
)
VAR RepeatedOrders =
SUMMARIZE(
UniqueOrdersPerDay,
[NroPedido2],
"DaysCount", COUNTROWS(UniqueOrdersPerDay)
)
RETURN
COUNTROWS(
FILTER(
RepeatedOrders,
[DaysCount] > 1
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi @yforti ,
Have you solved your problem? If solved please mark the reply in this post which you think is helpful as a solution to help more others facing the same problem to find a solution quickly, thank you very much!
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI @yforti
Try this:
Repetidos =
VAR UniqueOrdersPerDay =
SUMMARIZE(
iFrame,
iFrame[NroPedido2],
iFrame[DateSession - Copiar],
"OrderCount", COUNTROWS(iFrame)
)
VAR RepeatedOrders =
SUMMARIZE(
UniqueOrdersPerDay,
[NroPedido2],
"DaysCount", COUNTROWS(UniqueOrdersPerDay)
)
RETURN
COUNTROWS(
FILTER(
RepeatedOrders,
[DaysCount] > 1
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |