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,
I have two tables connected via 'project code'.
"Table A" and "Table B" (connected via project code)
I have made a simple table in my canvas with columns only from 'Table A'. Can I somehow make a calculated formula returning a Yes or a blank if the project code also appear in table B?
Thanks
Kristoffer
Project code: date sales In table B?
Project 1 17Jun 4546 Yes
Project 2 24Jan 34646 Blank
Solved! Go to Solution.
You could try the following calculated measure.
In table B? = VAR MyProjectCode = MIN('Table A'[Project Code]) RETURN IF( COUNTX( FILTER( 'Table B', 'Table B'[Product Code] = MyProjectCode ), 'Table B'[Product Code])>0, "Yes" )
i have the same issue BUT I need to return one value from the WORKING table if DAX can´t find one value in the related table.
Hi @Phil_Seamark - This works great as a measure. But ideally I this to function as a column. I'm trying to create a matrix like this (where values represent revenue split within a category). Your measure is the apparatus/no apparatus piece - where I'm checking to see if the unique identifier in Table A, is in Table B. I need to show this as column critera, not in values.
How can I edit the measure to apply as a column?
Cheers, Faye
Howdy, this solution worked for me:
You could try the following calculated measure.
In table B? = VAR MyProjectCode = MIN('Table A'[Project Code]) RETURN IF( COUNTX( FILTER( 'Table B', 'Table B'[Product Code] = MyProjectCode ), 'Table B'[Product Code])>0, "Yes" )
This solution worked perfectly for me. Thanks!
This is brilliant. Thanks @Phil_Seamark for the solution and @Kristofferaabo for asking the question.
Works great! exactly! thanks so much
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 |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |