Forum Discussion
banding - count
- 6 years ago
Hi Anonymous ,
Try to count it directly:
Measure = COUNTAX( FILTER( 'tblPerformance', [Performance] >= SELECTEDVALUE(tblBanding[Low]) && [Performance] <= SELECTEDVALUE(tblBanding[High]) ), [pKey] )Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi, It looks like th eissue I am have is to do with the DirectQuery table
because in my measure, inside the filter, I do not see in intellisense the field tblPerformance[Performance]
Any suggestions?
Thanks
Hi Anonymous ,
The reason that you cannot quote tblPerformance[Performance] in the filter formula in tblBanding is that there is no relationship between these tables.
You can try this measure:
count =
VAR tab =
SUMMARIZE (
'tblPerformance',
'tblPerformance'[Performance],
'tblPerformance'[pKey]
)
RETURN
COUNTAX (
FILTER (
tab,
[Performance] >= SELECTEDVALUE ( tblBanding[Low] )
&& [Performance] < SELECTEDVALUE ( tblBanding[High] )
),
[pKey]
)
tblPerformance in my sql server database using direct query in power bi desktop:
tblBanding by entering data manually using import mode in power bi desktop:
Using a table visual to show the final result:
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.