Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have two dates Effec_Date and bene_Date .. i want to euqlas to both dates and want like
if these two both dates are equal then age_band , otherwise null .. like this
=IF(POLICY_EFFECTIVE_DATE=BENEFICIARY_START_DATE,AGE_BAND,Null())i want to rewrite this in DAX..
any idea
Solved! Go to Solution.
Hi @Bakhtawar ,
Formula for measure.
Measure = IF(SELECTEDVALUE('Table'[Effec_Date])=SELECTEDVALUE('Table'[bene_Date]),SELECTEDVALUE('Table'[age_band]),BLANK())
Formula for calculated column.
Column = IF('Table'[Effec_Date]='Table'[bene_Date],'Table'[age_band],BLANK())To create Measures or Calculated columns, please right click on cloumns or tables or find menus under Modeling.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Bakhtawar ,
Formula for measure.
Measure = IF(SELECTEDVALUE('Table'[Effec_Date])=SELECTEDVALUE('Table'[bene_Date]),SELECTEDVALUE('Table'[age_band]),BLANK())
Formula for calculated column.
Column = IF('Table'[Effec_Date]='Table'[bene_Date],'Table'[age_band],BLANK())To create Measures or Calculated columns, please right click on cloumns or tables or find menus under Modeling.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Bakhtawar
try simple IF
Column =
IF([POLICY_EFFECTIVE_DATE]=[BENEFICIARY_START_DATE],
[AGE_BAND],
BLANK())
do not hesitate to give a kudo to useful posts and mark solutions as solution
i tried but
POLICY_EFFECTIVE_DATE
is not display in list
do you have such column? how does your data model look like?
Column =
IF('TableName'[POLICY_EFFECTIVE_DATE]='TableName'[BENEFICIARY_START_DATE],
'TableName'[AGE_BAND],
BLANK())
do not hesitate to give a kudo to useful posts and mark solutions as solution
yes i have these columns in table
in what table are you trying to create a column? if in the same you should see it in drop-down list
do not hesitate to give a kudo to useful posts and mark solutions as solution
see my table name is memeber but i did not get in list
it looks like you create a measure not column. measure could not have a direct relate to column, it should be some calculations
do not hesitate to give a kudo to useful posts and mark solutions as solution
yes i am trying to create measure ..
this expression is in qliksesne .. so i want to rewrite in dax
=IF(POLICY_EFFECTIVE_DATE=BENEFICIARY_START_DATE,AGE_BAND,Null())
try to create new COLUMN as I mentioned before or descibe your further logic if you need measure
do not hesitate to give a kudo to useful posts and mark solutions as solution
@Anonymous thx.
@Bakhtawar highly recommend to read this https://docs.microsoft.com/en-us/power-bi/guidance/dax-column-measure-references
do not hesitate to give a kudo to useful posts and mark solutions as solution
Go to home Tab
Click on NEw Column
Column= If(table[First_date]=table[Second_Date],[Age-band],blank())
Note: replace first_date and second_date with required date columns.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
this same table but i did not get field names ...even table does not appear ... what should i do
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 83 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |