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.
I need help, might be something simple. Trying to capture/ create measure per month per year and total overall.
Data Table
Site # | Operating Day | Date |
Site 1 | 20 | 1/1/2020 |
Site 2 | 20 | 1/1/2020 |
Site 3 | 20 | 1/1/2020 |
Site 1 | 21 | 2/1/2020 |
Site 2 | 21 | 2/1/2020 |
Site 3 | 21 | 2/1/2020 |
Site 1 | 20 | 3/1/2020 |
Site 2 | 20 | 3/1/2020 |
Site 3 | 20 | 3/1/2020 |
Site 1 | 21 | 1/1/2021 |
Site 2 | 21 | 1/1/2021 |
Site 3 | 21 | 1/1/2021 |
Site 1 | 19 | 2/1/2021 |
Site 2 | 19 | 2/1/2021 |
Site 3 | 19 | 2/1/2021 |
Site 1 | 20 | 3/1/2021 |
Site 2 | 20 | 3/1/2021 |
Site 3 | 20 | 3/1/2021 |
Site 1 | 20 | 1/1/2022 |
Site 2 | 20 | 1/1/2022 |
Site 3 | 20 | 1/1/2022 |
Site 1 | 20 | 2/1/2022 |
Site 2 | 20 | 2/1/2022 |
Site 3 | 20 | 2/1/2022 |
Site 1 | 22 | 3/1/2022 |
Site 2 | 22 | 3/1/2022 |
Site 3 | 22 | 3/1/2022 |
Desired output a single measure that user select time period and site to show operating day.
Year | Op Day | Month |
2020 | 20 | Jan |
2020 | 21 | Feb |
2020 | 20 | Mar |
2020 Total | 61 | |
2021 | 21 | Jan |
2021 | 19 | Feb |
2021 | 20 | Mar |
2021 Total | 60 | |
2022 | 20 | Jan |
2022 | 20 | Feb |
2022 | 22 | Mar |
2022 Total | 62 | |
Total Overall | 183 |
Solved! Go to Solution.
@Tevon713 hey did you managed or asked for this calculation?
@Tevon713 you just create this measure:
Thanks @SpartaBI. Problem found is if user select more than 1 region or site, it just sum up those per month. That is not correct.
With 2 sites selection
With 1 site (this is the correct)
Divide the sum by count of sites.
@Tevon713 hey did you managed or asked for this calculation?
Thank you again. Yes was exactly what I did.
@Tevon713 Great!
Hey, check out my showcase report:
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |