Forum Discussion

littlepatos's avatar
littlepatos
Helper II
3 years ago
Solved

Remove Blanks on Measure

I have a selection of measures created to show total number of times i did a particular activity, which is working fine but when I use the filter to select that activity across the whole report, the Card visuals for the other activities show as Blank.  I would like to show as NA (Not Applicable). 

Activity Type                       Date

Breathwork22/01/2023 0:00
Walking22/01/2023 0:00
Yoga21/01/2023 0:00
Walking21/01/2023 0:00
Walking20/01/2023 0:00
Yoga19/01/2023 0:00
Strength Training19/01/2023 0:00
Walking19/01/2023 0:00

 

I also have a date table 

Activity Type                                  Date                                TimeHours & Minutes              MinutesMinjutes as ValuesTime SpentAvg HRMax HRElapsed Time

Breathwork22/01/2023 0:000:05:3200:05055Over 4014415105:32.1
Walking22/01/2023 0:001:00:1801:006060Over 401111271:00:18
Yoga21/01/2023 0:000:25:4200:252561Over 40821110:25:42
Walking21/01/2023 0:001:00:1201:006062Over 401051171:00:12
Walking20/01/2023 0:000:51:0500:515163Over 401161310:51:05
Yoga19/01/2023 0:000:22:5000:222264Over 40881140:22:50
Strength Training19/01/2023 0:000:13:4100:131365Over 401091350:13:41
Walking19/01/2023 0:000:20:3100:202066Over 401061210:20:31
Walking18/01/2023 0:000:52:0400:525267Over 401151360:52:07

5 Replies

  • Hi,

    There should not be a need to write a seperate measure for each Activity type.  This simple measure should work

    Measure = countrows(Activities)

    The filter of Activity type will get picked up from the slicer selection itself.

    Avoid showing a N/A because that is a text entry and the measure will return a number so you will have multiple data types.

    • littlepatos's avatar
      littlepatos
      Helper II

      Thanks Ashish_Mathur great suggestion! I have changed the Measure and used the filter- much easier 🙂 I also added +0 as suggested in the other response to ensure I can display a zero when page filter is used.