Forum Discussion
Need help with DAX-New User
| AuctionId | LastHour | BidderID | NEWBIDDERs |
| A | LH | 1 | 1 |
| A | LH | 2 | 0 |
| A | OH | 2 | 0 |
| B | OH | 2 | 0 |
| B | LH | 3 | 1 |
| C | OH | 4 | 0 |
| C | LH | 5 | 1 |
| D | LH | 6 | 0 |
| D | LH | 7 | 1 |
| D | LH | 8 | 1 |
| D | OH | 6 | 0 |
| D | OH | 6 | 0 |
Anonymous ,
Here is screenshot of the formula:
It works on my side, just make sure it is the same as on these screenshots.
If it still displays error, please send screenshot as my first screenshot so that we can see what is causing the error.
Cheers,
Nemanja
4 Replies
- Greg_Deckler
Community Champion
Anonymous - Question. If Bidder X entered last hour for auction A and not OH for auction A but entered OH for auction B, should they be flagged as a 1 for auction A and 0 for auction B or 1 for both or 0 for both?
- nandic
Resident Rockstar
Hi Anonymous ,
Could you try this formula:
New bidders =
VAR newBidders =
CALCULATETABLE (
VALUES ( Sheet1[BidderID] ),
FILTER ( Sheet1, Sheet1[LastHour] = "LH" )
)
VAR oldBidders =
CALCULATETABLE (
VALUES ( Sheet1[BidderID] ),
FILTER ( Sheet1, Sheet1[LastHour] = "OH" )
)
VAR onlyNewBidders = EXCEPT ( newBidders, oldBidders )RETURN
CALCULATE ( DISTINCTCOUNT ( Sheet1[BidderID] ), onlyNewBidders )Cheers,
Nemanja
- AnonymousNot applicablenandic nandic I to used formula but giving me error "circular dependency was detected: Sheet1[Column]"
- nandic
Resident Rockstar
Anonymous ,
Here is screenshot of the formula:
It works on my side, just make sure it is the same as on these screenshots.
If it still displays error, please send screenshot as my first screenshot so that we can see what is causing the error.
Cheers,
Nemanja