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'm trying to make a report which shows how many sites have been visited per time period (not actually a month, but close enough), vs the target for that period.
I have a table which shows the frequency target, and a second table which shows all the individual site visit data. What I'm having difficulty is linking the two together to see how many total visits have been made in a period. I've managed to set my coverage so I can tell whether a site has been visited at all, but not to the correct frequency.
Below is an example of the data I have:
So for P1, Site 1, I want a Frequency Actual value of 3; for P1, Site 2, a Frequency Actual value of 2; for P1, Site 3, a Frequency Actual value of 1 and so on.
Any suggestions?
Thanks!
Solved! Go to Solution.
Try this Calculated Column
Frequency Actual = CALCULATE ( COUNTROWS ( VisitData ), FILTER ( VisitData, VisitData[Site Code] = Targets[Site Code] && VisitData[Visit Period] = Targets[Period] ) )
Try this Calculated Column
Frequency Actual = CALCULATE ( COUNTROWS ( VisitData ), FILTER ( VisitData, VisitData[Site Code] = Targets[Site Code] && VisitData[Visit Period] = Targets[Period] ) )
Fantastic, thanks! I'd tried a lot of different filter types, but the double amphersand was the step I was missing.
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 |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |