Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello, I need Help with the sum of a measure I have the following measure:
I need to sum the total activities a user made, but if they made more than 3 activities in 1 day, that must count like only 1. I attach a view.
Thanks,
Hi, @juanso14
Based on your description, I created data to reproduce your scenario.
You may create two measures as follows.
Modified =
IF(
MAX('Table'[New interacciondiaria]) =100000021&&
MAX('Table'[CountOfsubject])>3,
1,
MAX('Table'[CountOfsubject])
)
Result =
SUMX(
ALLSELECTED('Table'),
[Modified]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thank you for the answer but I have a problem with the result:
I Made one column before because i didnt have that value of count of subject (in the other view because I count in the view)
Can you please explain with an example.Can you share sample data and sample output.
Hello, I can´t share a sample because is sensible information. But i made a resume view below. I want to filter the New:interacciondiaria = 100000021 and with than info when the count of subject is higher than 3 (I highlight one with 6), in that cases i want to show a 1. And after that I want to SUM all that counts.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |