The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I need to filter a table to include only Commercial Vehicles and Non-Commercial vehicles and then get a count of yes from a different column. So far I can only get either Commercial or Non-Commercial not both. Here is what I have as my statement. I am sure this is an easy one for the power users. I am still pretty new at this.
Solved! Go to Solution.
Hi,
Try this
PV = COUNTX(FILTER('IScout_154689',(('IScout_154689'[S01_05]="Non-Commercial Vehicle")||('IScout_154689'[S01_05]="Commercial Vehicle")) && 'IScout_154689'[S06_06]="YES"),'IScout_154689'[Report_number])
Hope this helps.
Hi,
Try this
PV = COUNTX(FILTER('IScout_154689',(('IScout_154689'[S01_05]="Non-Commercial Vehicle")||('IScout_154689'[S01_05]="Commercial Vehicle")) && 'IScout_154689'[S06_06]="YES"),'IScout_154689'[Report_number])
Hope this helps.
Give this a try, see if it returns what you need.
PV =
CALCULATE (
COUNT ( 'IScout_154689'[Report_number] ),
'IScout_154689'[S01_05] IN { "Non-Commercial Vehicle", "Commercial Vehicle" },
'IScout_154689'[S06_06] = "YES"
)
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |