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.
I'm trying to use a measure as a dynamic title for a table visual but it returns the wrong value.
Included is a test example of this:
Solved! Go to Solution.
Was able to make it work by adding DISTINCT after COUNTROWS on both sides.
Was able to make it work by adding DISTINCT after COUNTROWS on both sides.
@darry3ni first red flag here is the use of ALLSELECTED - what exactly are you trying to achieve with that function?
ALLSELECTED() is somewhat notorious for being one of the most complicated DAX functions, so unless you have a very specific reason that requires it I would see if there are alternatives you could be using to achieve the same result more simply?
I have another slicer to filter the table, so I'm using ALLSELECTED to return a row count of the filtered table. Is there an easier way to get that row count?
Did you try just using a regular COUNTROWS( Main Table) without the ALL()?
Also, are you actually trying to return a row count or are you just trying to determine if the table is filtered? If the latter, I'd recommend just using the ISFILTERED() function.
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 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |