Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Note: I have a "Date_of_Service" slicer that has 9/7/2021 through 9/14/2021 selected.
I am hoping someone could help me how to figure out how to Count the # of Days Selected? Instead of 8, it should be 112.
The main goal I am trying to accomplish is figure out a formula that takes the sum of the "Count Distinct Visits" divided by "# of Days Selected" which will give me the true average. If you see my attached image I am trying to get the 17.25. But Power BI shows 8.05. i cant figure out how to create the formula to get me the 17.25?
Thanks,
Solved! Go to Solution.
Hi @jonnyA ,
Please try this measure:
Visits / Providers divided by # of Days selected =
VAR _s =
SUMMARIZE (
'Dataset_Extended_BillingTool',
[Provider Name],
"visits", [Visits / Providers],
"of days selected", DISTINCTCOUNT ( 'Dataset_Extended_BillingTool'[Date_of_Service] )
)
RETURN
DIVIDE ( SUMX ( _s, [visits] ), SUMX ( _s, [of days selected] ) )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Do you know why my screenshots vanish?
I cannot share a sample report.
Does the attached screenshot help with what I am trying to accomplish?
Hi @jonnyA ,
Please try this measure:
Visits / Providers divided by # of Days selected =
VAR _s =
SUMMARIZE (
'Dataset_Extended_BillingTool',
[Provider Name],
"visits", [Visits / Providers],
"of days selected", DISTINCTCOUNT ( 'Dataset_Extended_BillingTool'[Date_of_Service] )
)
RETURN
DIVIDE ( SUMX ( _s, [visits] ), SUMX ( _s, [of days selected] ) )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@jonnyA , Can you share the measure calculation?
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
User | Count |
---|---|
92 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
59 |