Forum Discussion
Remove Empty Colums
- 5 years ago
Hi MichaelSt ,
You could try the following steps:
Step1: create a measure like below:
Measure = IF ( MAX ( 'Table'[SubmissionDate ] ) = BLANK () || MAX ( 'Table'[FirstName] ) = BLANK () || MAX ( 'Table'[FirstName] ) = BLANK () || MAX ( 'Table'[Lastname] ) = BLANK () || MAX ( 'Table'[Email] ) = BLANK () || MAX ( 'Table'[City] ) = BLANK () || MAX ( 'Table'[Address] ) = BLANK (), BLANK (), 1 )Step 2: configure the filters:
base data:
and final:
Wish it is helpful for you!
Best Regards
Lucien
HI MichaelSt
Create a measure as below and use it in the Filter section of the report and set it always filter to 1.
-Filter = IF(ISBLANK(Formname) || ISBLANK(SubmissionDate) || ISBLANK(FirstName) || ISBLANK(Lastname) || ISBLANK(Email) || ISBLANK(City) || ISBLANK(Address), 0, 1)
- MichaelSt5 years agoFrequent Visitor
Hi, thanks for your answer first of all.
I guess thats not quite what I'm looking for. Thats a DAX for a calculated column, not for a Measure, right? At least I can only use it there..
Either way doesn't the filter remove columns. It would only filter the rows right?
I need to remove the columns if they are empty from the Visual