Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Friends, Could you please help me to write the dax query for the status column in the below example scenario
if name is already available from previous then status should show already joined, otherwise new joinee
| Input Table | ||
| Name | Subject | Date |
| A | CS | 29-01-2021 |
| B | IT | 29-01-2021 |
| C | EE | 29-01-2021 |
| A | CS | 05-02-2021 |
| S | CE | 05-02-2021 |
| F | EC | 05-02-2021 |
| Output Table | ||
| user selects date = 29-01-2021 | ||
| Name | Subject | Status |
| A | CS | New Joinee |
| B | IT | New Joinee |
| C | EE | New Joinee |
| user selects date = 05-02-2021 | ||
| Name | Subject | Status |
| A | CS | Already Joined |
| S | CE | New Joinee |
| F | EC | New Joinee |
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi, @RENJITH_R_S , simple enough, you may use date columns as slicer, and a measure
Status =
IF (
ISEMPTY(
FILTER (
CALCULATETABLE ( Table1, ALL ( Table1[Date] ) ),
Table1[Date] < MAX ( Table1[Date] )
)
),
"New Joinee",
"Already Joined"
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
You may download my PBI file from here.
Hope this helps.
You are welcome.
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 |
|---|---|
| 57 | |
| 38 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 37 | |
| 35 | |
| 25 |