The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table with multiple lines per day. each line has a unique ID number. There are varible persons overseeing these events each day. I would like to create a measure that provides the output below - Example:
Data | |||||
Event | person | day | Output | ||
1 | A | Monday | Day | # of persons | |
2 | B | Monday | Monday | 2 | |
3 | A | Monday | Tuesday | 2 | |
4 | B | Tuesday | Wednesday | 2 | |
5 | B | Tuesday | Friday | 3 | |
6 | C | Tuesday | |||
7 | A | Wednesday | |||
8 | A | Wednesday | |||
9 | C | Wednesday | |||
10 | A | Wednesday | |||
11 | A | Friday | |||
12 | B | Friday | |||
13 | B | Friday | |||
14 | C | Friday |
Solved! Go to Solution.
Write a new measure:
# of persons = DISTINCTCOUNT ( data[person] )
Then pull the day from your data table and the new measure into a visual
Write a new measure:
# of persons = DISTINCTCOUNT ( data[person] )
Then pull the day from your data table and the new measure into a visual
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
90 | |
82 | |
64 | |
58 |
User | Count |
---|---|
244 | |
128 | |
118 | |
79 | |
78 |