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 stock exchange data in power bi.i have a measure that calculates whether closing price is maximum or not.if closing price is maximum this measure gives to the answer equall to zero.Now I want to count those zero in a separate measures
Solved! Go to Solution.
You could do this using SUMX and VALUES. First you'll need to understand what groupings will let you check a zero for. Maybe its a particular stockcode. Here is an example:
Zero Count = SUMX(
VALUES('Stocks'[Stock Code]),
IF([Closing price max check] = 0, 1, 0)
)
Thank You Sir
You could do this using SUMX and VALUES. First you'll need to understand what groupings will let you check a zero for. Maybe its a particular stockcode. Here is an example:
Zero Count = SUMX(
VALUES('Stocks'[Stock Code]),
IF([Closing price max check] = 0, 1, 0)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |