Forum Discussion
Anonymous
7 years agoNot applicable
Power BI Count IF Like
I have a spreadsheet which gets updated weekly and then have a dashboard in PowerBI. I want to be able to Query coloum 3 for all names like DA_ and then count coloum 4 for enabled/disabled Is thi...
- 7 years ago
MeasureCount = CALCULATE(COUNTROWS(Like);FILTER(Like;LEFT(Like[SamAccount];3)="DA_" && Like[enable]="TRUE"))
Best Regards,
Miguel
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
7 years agoNot applicable
But i only want to count it if it has DA_ in SamAccount?
ZunzunUOC
7 years agoResolver III
Then, change the code to:
MeasureCount = CALCULATE(COUNTROWS(Like);FILTER(Like;LEFT(Like[SamAccount];3)="DA_"))
- ZunzunUOC7 years agoResolver III
MeasureCount = CALCULATE(COUNTROWS(Like);FILTER(Like;LEFT(Like[SamAccount];3)="DA_" && Like[enable]="TRUE"))
Best Regards,
Miguel
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - Anonymous7 years agoNot applicable
But that doesnt do both so i need to count the enabled accounts that match DA_?
- Anonymous7 years agoNot applicable
Thank you :)
- v-chuncz-msft7 years agoCommunity Support
Anonymous
By the way, you may help accept the solution above. Your contribution is highly appreciated.