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 Everyone
I have got a table and its total, my requirement is to have a grand total from a another table, but in this case I will use a string, it works fine when selecting 2 or more values from the slicer but when I select only 1 it changes to the total of the one remaining value selected.
when I select the filters like this is shows correct output
but when I select only one value it shows wrong output
it should only display the text "This should not change" even if only one value is selected
here is my dax:
TOTAL = IF ( HASONEVALUE ( 'Experiment Table'[Product] ), SUMX ( 'Experiment Table', [Whole] * [Per] ), "THIS SHOULD NOT CHANGE" )
Solved! Go to Solution.
@Alrythmond wrote:
it should only display the text "This should not change" even if only one value is selected
Then you should not be using the HASONEVALUE() function. Try using ISINSCOPE() instead
@Alrythmond wrote:
it should only display the text "This should not change" even if only one value is selected
Then you should not be using the HASONEVALUE() function. Try using ISINSCOPE() instead
OH wow!, Thank you so much! I didn't notice there was a function like this, this will help me althroughout my development thank you 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 |
---|---|
111 | |
95 | |
77 | |
69 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |