Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a column "sales" in dataset "data" and whether sale was made or not (1 = sales, 0 = no sales)
I am trying to create two measures for "sale" and "no sale"
I tried:
No sale = COUNTROWS(FILTER(data,data[sales] = "0")) but i get an error saying filter is not the correct syntax
this usually works based off text but im not sure how to do it by number
looking through power bi forum found another measure:
Solved! Go to Solution.
@Anonymous this should work (whatever you are doing) without any issue.
Take a look here and post the pbix/sample data here for debugging
Thank you!! Worked beautifully
@Anonymous this should work (whatever you are doing) without any issue.
Take a look here and post the pbix/sample data here for debugging
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |