Forum Discussion
Count column, filtered by measure
- Anonymous2 years ago
Hi thinker_02
Please try this:
I create a new table:
Then Create a measure:
CountID = VAR _Newvalue = SELECTEDVALUE('Table 2'[Value]) VAR _countID = SWITCH( _Newvalue, "Count1", "ID1", "Count2", "ID2" ) RETURN CALCULATE( COUNTROWS('Data'), FILTER( ALLSELECTED('Data'), 'Data'[Status] = "High" && 'Data'[Product ID] = _countID ) )The result is as follow:
Best Regards,
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 2 years ago
Hi,
I had shared those measures in another post with you. You should have ideally continued asking your question in the same thread. Try this measure
Measure = countrows(Data[Product ID]),[Status on latest date]="High")
Hope this helps.
Anonymous Can you attach the PBIX file pls? I tried to do same but didnt work. I have multiple IDs in data such as ID1, ID2, ID3, ID4 etc. I must be missing something. Many thanks.
- Anonymous2 years agoNot applicable
Hi thinker_02
Here is the pbix file:
Best Regards,
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.