Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
Need help with the following. I have a card and a slicer. Currently the filter is applied to the calculation based on selected value in a slicer.
Currently looking like this:
Solved! Go to Solution.
Hi,
try:
RETURN
IF(HASONEVALUE(table1[slicercolumn]), <yourCodeFromAbove>, SUM(table1[column]))
hth and br
Hi,
try:
RETURN
IF(HASONEVALUE(table1[slicercolumn]), <yourCodeFromAbove>, SUM(table1[column]))
hth and br
Thanks, getting a blank return.
Try
RETURN IF(NOT(HASONEVALUE(table1[slicercolumn])), SUM(table1[column]))
to see if it's your code that returns blank... (debugging)
@lukiz84
many thanks, the debugging as per above suggested works fine, it returns a value. However, re trying the first example I still get no value returned selecting or not selecting a value in the slicer.
Can you show the slicer Table (where you apply HASONEVALUE) and the data table? Just some sample data...?
Many thanks for your help. I'm terribly sorry for wasting your time. Whilst preparing sample data thus isolating the table from quite a "HUGE" report I been such a data rookie. In the end my issues was on of the fields having a data type as text rather than decimal number. However, strangely enough I got no error message, rather just no return.
Thanks for you time in helping me get to the bottom of the problem. I will go an accept your solution. Thanks again!
User | Count |
---|---|
98 | |
91 | |
84 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |