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 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)
)
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |