Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have the following dataset that includes a date, a store ID, and a profit value for that month. One site has not compiled it's report yet for the time frame:
| Date | ID | Profit |
| 10/1/2019 | 1 | -25 |
| 10/1/2019 | 2 | 24 |
| 10/1/2019 | 3 | 0 |
| 10/1/2019 | 4 | |
| 10/1/2019 | 5 | -1 |
| 11/1/2019 | 1 | 34 |
| 11/1/2019 | 2 | 14 |
| 11/1/2019 | 3 | 3 |
| 11/1/2019 | 4 | |
| 11/1/2019 | 5 | -5 |
My goal is to countthe number of sites in a given time period that are profitable. Profitable in this case is anything that is greater than or equal to 0. My current measure for this is as follows:
Solved! Go to Solution.
Positive Values = SUMX(
SUMMARIZE(
FILTER(
Table,
NOT(ISBLANK(Table[Profit]))
),
Table[ID]
),
IF(CALCULATE(SUM(Table[Profit])) >= 0, 1 , BLANK()))
Positive Values = SUMX(
SUMMARIZE(
FILTER(
Table,
NOT(ISBLANK(Table[Profit]))
),
Table[ID]
),
IF(CALCULATE(SUM(Table[Profit])) >= 0, 1 , BLANK()))
Thank you very much!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 34 | |
| 32 | |
| 29 |