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.
Hi
I am new to this so this is most likely a simple one.
I need to count the amount of times (units) an activity occured during a financial year. Eg.
Activity | Financial Year | Units |
Activity 1 | 2018 | 3 |
Activity 1 | 2018 | 3 |
Activity 1 | 2018 | 3 |
Activity 2 | 2018 | 2 |
Activity 2 | 2018 | 2 |
Activity 3 | 2018 | 1 |
Activity 4 | 2018 | 1 |
Activity 1 | 2019 | 2 |
Activity 1 | 2019 | 2 |
Activity 2 | 2019 | 1 |
Activity 3 | 2019 | 4 |
Activity 3 | 2019 | 4 |
Activity 3 | 2019 | 4 |
Activity 3 | 2019 | 4 |
Activity 4 | 2019 | 2 |
Activity 4 | 2019 | 2 |
Thank you in advance
Solved! Go to Solution.
Hi @ZoltanT ,
You can use ALLEXCEPT() function.
units = CALCULATE(COUNT('Table'[Activity]),ALLEXCEPT('Table','Table'[Activity],'Table'[Financial Year]))
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
This calculated column formula works
=CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Activity]=EARLIER(Data[Activity])&&Data[Financial Year]=EARLIER(Data[Financial Year])))
Hope this helps.
Hi @ZoltanT ,
You can use ALLEXCEPT() function.
units = CALCULATE(COUNT('Table'[Activity]),ALLEXCEPT('Table','Table'[Activity],'Table'[Financial Year]))
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ZoltanT ,You can use count(Table[Activity]) , sum(Table[Unit]) in any visual with row/group by as finanacial year
Hi,
Please show the exact result that you are expecting?
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |