<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to add warning message if select all checkbox clicked on slicer in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/how-to-add-warning-message-if-select-all-checkbox-clicked-on/m-p/4197562#M37515</link>
    <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="814646" data-lia-user-login="kp27" class="lia-mention lia-mention-user"&gt;kp27&lt;/a&gt; .I am glad to help you.&lt;/P&gt;
&lt;P&gt;You can refer to my test case below where I use several common slicer processing approaches:&lt;BR /&gt;switch dynamically returns different cases, filtering the data based on the meausre value (set the value of the filter function's measure in filters = 1)&lt;BR /&gt;slicer multiple choice: using the values function&lt;BR /&gt;slicer options splicing: use the string concatenation function will be the target slicer in the selected value spliced into a string and to determine whether each line of data in the string&lt;/P&gt;
&lt;P&gt;Here is my test code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cardWarning = 
VAR _slicerValue= VALUES('SlicerTable'[slicerData])
VAR _slicerTable=CALCULATETABLE(
    VALUES('data_refreshTest'[refreshPoint]),FILTER(
        ALLSELECTED('data_refreshTest'),'data_refreshTest'[refreshPoint] in _slicerValue)
)
VAR _slicertext=  CONCATENATEX(VALUES('SlicerTable'[slicerData]), 'SlicerTable'[slicerData], ", ")
VAR TotalValuesRows = COUNTROWS(ALL('SlicerTable'[slicerData]))
VAR SelectedValuesRows = COUNTROWS(VALUES('SlicerTable'[slicerData]))
VAR _ifSelectedALL=IF(TotalValuesRows = SelectedValuesRows, 1, 0)
VAR _ifSelectedNone=IF(SelectedValuesRows=0 ,1 , 0)
VAR _today=TODAY()
VAR _threemonthsago=EOMONTH(_today,-3)+1
VAR _onemonthago=EOMONTH(_today,-1)+1
VAR _oneweekago=_today -7
VAR _tableDatePoint =MAX('data_refreshTest'[refreshPoint])
VAR _value01=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]=_today))
VAR _value02=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _oneweekago))
VAR _value03=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _onemonthago))
VAR _value04=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _threemonthsago))
RETURN 
SWITCH(TRUE(),
_ifSelectedALL=1,"warning:Please do not select “Selected All Or select other options on the slicer",
CONTAINSSTRING(_slicertext,"three months ago"),IF(_tableDatePoint=_value04,1,0),
CONTAINSSTRING(_slicertext,"a month ago"),IF(_tableDatePoint=_value03,1,0),
CONTAINSSTRING(_slicertext,"a week ago"),IF(_tableDatePoint=_value02,1,0),
CONTAINSSTRING(_slicertext,"nowadays"),IF(_tableDatePoint=_value01,1,0)
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The slicer table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the slicer does not make a selection (default select all), or when you click selected all, the system prompts an error message:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the corresponding month filter date is selected, the data for the corresponding date is displayed using the markup result of measure:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I also found the article that meets your needs and have uploaded the test file, I hope it helps.&lt;/P&gt;
&lt;P&gt;URL:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/Display-Custom-Message-in-the-Visual-Until-a-Selection-is-Made/ba-p/1438721" target="_blank"&gt;Display Custom Message in the Visual Until a Selec... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Carson Jian,&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 05:02:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-30T05:02:04Z</dc:date>
    <item>
      <title>how to add warning message if select all checkbox clicked on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/how-to-add-warning-message-if-select-all-checkbox-clicked-on/m-p/4185818#M37229</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I choose select all checkbox in slicer, Data in visual is reaching its limit,So I'm trying to add warning message if select all check box is clicked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps I followed, I tried creating DAX and adding warning message in it . And added&amp;nbsp; card visual to implement the warning message but this method doesnt helps.s there is any way to resolve it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 00:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/how-to-add-warning-message-if-select-all-checkbox-clicked-on/m-p/4185818#M37229</guid>
      <dc:creator>kp27</dc:creator>
      <dc:date>2024-09-28T00:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to add warning message if select all checkbox clicked on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/how-to-add-warning-message-if-select-all-checkbox-clicked-on/m-p/4197562#M37515</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="814646" data-lia-user-login="kp27" class="lia-mention lia-mention-user"&gt;kp27&lt;/a&gt; .I am glad to help you.&lt;/P&gt;
&lt;P&gt;You can refer to my test case below where I use several common slicer processing approaches:&lt;BR /&gt;switch dynamically returns different cases, filtering the data based on the meausre value (set the value of the filter function's measure in filters = 1)&lt;BR /&gt;slicer multiple choice: using the values function&lt;BR /&gt;slicer options splicing: use the string concatenation function will be the target slicer in the selected value spliced into a string and to determine whether each line of data in the string&lt;/P&gt;
&lt;P&gt;Here is my test code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cardWarning = 
VAR _slicerValue= VALUES('SlicerTable'[slicerData])
VAR _slicerTable=CALCULATETABLE(
    VALUES('data_refreshTest'[refreshPoint]),FILTER(
        ALLSELECTED('data_refreshTest'),'data_refreshTest'[refreshPoint] in _slicerValue)
)
VAR _slicertext=  CONCATENATEX(VALUES('SlicerTable'[slicerData]), 'SlicerTable'[slicerData], ", ")
VAR TotalValuesRows = COUNTROWS(ALL('SlicerTable'[slicerData]))
VAR SelectedValuesRows = COUNTROWS(VALUES('SlicerTable'[slicerData]))
VAR _ifSelectedALL=IF(TotalValuesRows = SelectedValuesRows, 1, 0)
VAR _ifSelectedNone=IF(SelectedValuesRows=0 ,1 , 0)
VAR _today=TODAY()
VAR _threemonthsago=EOMONTH(_today,-3)+1
VAR _onemonthago=EOMONTH(_today,-1)+1
VAR _oneweekago=_today -7
VAR _tableDatePoint =MAX('data_refreshTest'[refreshPoint])
VAR _value01=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]=_today))
VAR _value02=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _oneweekago))
VAR _value03=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _onemonthago))
VAR _value04=CALCULATE(MAX('data_refreshTest'[refreshPoint]),FILTER('data_refreshTest','data_refreshTest'[refreshPoint]&amp;lt;=_today &amp;amp;&amp;amp; 'data_refreshTest'[refreshPoint]&amp;gt;= _threemonthsago))
RETURN 
SWITCH(TRUE(),
_ifSelectedALL=1,"warning:Please do not select “Selected All Or select other options on the slicer",
CONTAINSSTRING(_slicertext,"three months ago"),IF(_tableDatePoint=_value04,1,0),
CONTAINSSTRING(_slicertext,"a month ago"),IF(_tableDatePoint=_value03,1,0),
CONTAINSSTRING(_slicertext,"a week ago"),IF(_tableDatePoint=_value02,1,0),
CONTAINSSTRING(_slicertext,"nowadays"),IF(_tableDatePoint=_value01,1,0)
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The slicer table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the slicer does not make a selection (default select all), or when you click selected all, the system prompts an error message:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the corresponding month filter date is selected, the data for the corresponding date is displayed using the markup result of measure:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I also found the article that meets your needs and have uploaded the test file, I hope it helps.&lt;/P&gt;
&lt;P&gt;URL:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/Display-Custom-Message-in-the-Visual-Until-a-Selection-is-Made/ba-p/1438721" target="_blank"&gt;Display Custom Message in the Visual Until a Selec... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Carson Jian,&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 05:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/how-to-add-warning-message-if-select-all-checkbox-clicked-on/m-p/4197562#M37515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T05:02:04Z</dc:date>
    </item>
  </channel>
</rss>

