The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello everyone, maybe one of you can help me with this. I have a Table where i need to check a row "category" if it contains certain Values. If one of this Value is True i want to display the value of my Date1 Row if not it need to display the value of the row date2.
My Dax Measure looks like this, but i dont know how to display the value from the date rows. Can someone help? Thanks 🙂
IF(
CONTAINS('table', 'table'[category], "A") ll
CONTAINS('table', 'table'[category], "B") ll
CONTAINS('table', 'table'[category], "C"),
?? DISPLAY DATE1,
?? DISPLAY DATE2
)
Solved! Go to Solution.
Hi @h3x ,
You can create a calculated column as below to get it:
Column =
IF (
IFERROR ( SEARCH ( "A", 'Table'[category], 1, 0 ), 0 ) > 0
|| IFERROR ( SEARCH ( "B", 'Table'[category], 1, 0 ), 0 ) > 0
|| IFERROR ( SEARCH ( "C", 'Table'[category], 1, 0 ), 0 ) > 0,
'Table'[Date1],
'Table'[Date2]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @h3x ,
You can create a calculated column as below to get it:
Column =
IF (
IFERROR ( SEARCH ( "A", 'Table'[category], 1, 0 ), 0 ) > 0
|| IFERROR ( SEARCH ( "B", 'Table'[category], 1, 0 ), 0 ) > 0
|| IFERROR ( SEARCH ( "C", 'Table'[category], 1, 0 ), 0 ) > 0,
'Table'[Date1],
'Table'[Date2]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Worked fine! Thank you very much!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |