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.
Hello
I have a table where some columns are results of measures.
For example, if Table[Col1]='SOMETHING' then COUNTROWS(AnotherTable, with criteria etc).
The problem is that I cannot actually use IF(Table[Col1]='SOMETHING' .... ) in the measure because I get the following error:
A single value for column 'Col1' in table 'Table' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
So, I understand that because the Col1 has duplicates, I need to use IF(MAX(Table[Col1])='SOMETHING' .... ) or IF(SELECTEDVALUE(Table[Col1])='SOMETHING' .... )
This displays the correct results of the measure in the Table however it has been impossible to create a graph out of this Table using another column, e.g. Col2 (which also has duplicates). When I drag the Col2 into the x axis and the Measure into the y axis, it displays only one value of Col2.
Do you have any fix for this please?
Thanks!
@UsePowerBI post sample data and expected output, how these tabes are connected, where you are getting col1 and col2.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
---|---|
108 | |
105 | |
88 | |
74 | |
66 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |