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. So I am am pretty new to Power BI and I am trying to take these two columns (simplified fake versions of the real data) and get some specific visualizations but I am really stuck. I want the average number of tags per person per group, and I want it dividable by a time slicer.
Basically, I want to be able to look at the whole thing and see what the average number of tags per person overall, and I want to be able to slice it by a time range. I want to then be able to select a group and see the average per that group.
Table 1
person | group |
a | group_1 |
b | group_1 |
c | group_2 |
d | group_2 |
Table 2
person | date | tag |
a | 9/6/2019 | foo |
a | 9/6/2019 | foo |
a | 9/6/2019 | foo |
a | 9/4/2019 | bar |
a | 9/2/2019 | bar |
b | 9/6/2019 | foo |
b | 9/6/2019 | bar |
b | 9/5/2019 | bar |
b | 9/6/2019 | bar |
c | 9/4/2019 | foo |
c | 9/2/2019 | foo |
c | 9/1/2019 | foo |
d | 9/4/2019 | foo |
d | 9/5/2019 | foo |
d | 9/3/2019 | foo |
d | 9/5/2019 | bar |
d | 9/2/2019 | bar |
d | 9/3/2019 | bar |
I tried to make a new table with SUMMARIZE that had the totals per person, with a relationship with the table 1 making it so I could look at it per group, but I couldn't figure out how to get the date slicer to affect it. I feel like I am missing something basic but I can't figure it out. Thank you so much for your help.
Solved! Go to Solution.
Hi,
Try this.
Hope this helps.
Hi,
Try this.
Hope this helps.
That worked! Thank you so much!
Thank you.
Hi,
Based on the 2 Tables that you have shared, show the exact expected result.
Sorry. I can't get the expected result to happen but I can describe it, but it would be a visualization of a bar graph with the values field being the average of the total number of tags per person, the x axis would be the group and it would be dependant on a date range slicer.
I can figure out a table like this, that shows the total number of tags per person by using SUMMARIZE(Table2, Table2[person], COUNTA(Table2[tags])):
person | totalTags |
a | 5 |
b | 4 |
c | 3 |
d | 6 |
And I can figure out how to make the graph based on that (Making a measure of AVERAGE(Table_3[totalTags]), and then having that be the value in the bar graph). But I can't figure out how to make that this depend on the date. I want to be able to look at the average per group on each day, or during a particular range. Ideally, I would be able to also have a separate visualization that has the day as the x-axis and the group as the slicer, but that is less important.
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 |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |