Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |