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 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.
- v-yingjl6 years agoCommunity Support
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.
- Anonymous6 years agoNot applicable
Hi, the second simplified dax is good.
Since there is no relationship between the performance table and the Band table, how can I create a column char with count on y axis and band range on x axis?
Thank you- v-yingjl6 years agoCommunity Support
Hi Anonymous ,
You can create a column chart like this:
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.