Hello EDNA - this is my first post. Looking for some assistance. I’m 2/3rd’s of the way to the result I need. the attached Excel file, far left tab shows the measure I’m currently working with.
This is a three part measure.
Sum total. DONE
Show all selected dates. DONE.
Don’t show “EMP ID’s” , if they don’t have data during the selected dates in the slicer.
–YELLOW highlighted rows should not be displayed because they don’t have any data during the current selected dates via the slicer.
The third parameter is optional and will return a blank when omitted.
Pro tip. Store the SUMX calculation result in a variable and refer to that multiple times.
Well the reason why it’s still showing the results against the EMP ID’s where you actually don’t have records is because of the condition you’ve put into your measure i.e. “”. Below is the measure provided for the reference that you’ve written in your file.
Now, replace “” with the “BLANK()” and you’ll observe that EMP ID’s which don’t have any records will not show anymore. Below is the revised measure provided for the reference -
Hey @Melissa , appreciate you looking at this for me.
I just tested the suggested measure and the date of 8/15 is no longer visible, which is what I need.
With your measure, I’m showing 108 "EMP Code"s which is expected. But not showing the date of 8/15, which is what is required even if I have no data on that date.
Hello @Harsh - I also tested your measure and totals are as expected. but not when it comes to the date columns. Found that it is no longer showing the 8/15 date. I understand it’s not showing 8/15 due to no data on that date.
108 EMP CODE’s are expected with the dates selected via the slicer of 8/9 - 8/15, because they all have data during that period except for 8/15. 8/15 has no data, but because I selected that date in the slicer, I need it to show, 8/15.
I appreciate you taking a look at it. additional ideas would be appreciated.
@Melissa - I forgot to mention in my 1st reply to you that your VAR suggestion was a good suggestion. it should certainly cut down on the code, especially if we see 4 iterators . Let me test now.