Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Need help with DAX measure to show column with Blank value in Table

Hello all,

I would need your help for the below requirement. I have tried myself but not meeting complete requirement
I have table with below column which shows open/close response details.

In case of closecategory within 24hrs and after 24Hrs , "closereason" gets translated to defined conutry languages and "emailcloseby" will be tagged to en always and doesn't store value for New/Late closecategory

responseid   closedresponseid    closecategory   emailclosedby     closeReason    languagecode   country
a1b1within 24Hrsabc@gmail.comtestingenBelgium
a1b1within 24Hrs testennlBelgium
a1b1within 24Hrs essaifrBelgium
a2b2after 24Hrstest@gmail.comtestenPortugal
a2b2after 24Hrs testeptPortugal
a3 Late   Italy
a4 Late   Poland
a5 New   Poland
a6 New   France


Report should have slicer of closecategory and languagecode(taken from dimension table) along with table visual which will have all details.
Languagecode slicer should show data in table based on selected value and If nothing is selected show value any among them in case of more than 1 language for one country.

I have written below measure which I should use instead of column closereason in table which filter data correctly based on language but requirement is to show record(with blank value for column closereason)in table when closedcategory is selected all which also includes closecategory=New/Late(langugage code is blank).When closecategory is New/Late then closereason and languagecode will not have data.

Translated_Closereason = SWITCH(SELECTEDVALUE(Sheet1[languagecode]),
"fr",MAXX(FILTER(Sheet1,Sheet1[languagecode]="fr"),[closeReason]),
"nl",MAXX(FILTER(Sheet1,Sheet1[languagecode]="nl"),[closeReason]),
"pt",MAXX(FILTER(Sheet1,Sheet1[languagecode]="pt"),[closeReason]),
"pt",MAXX(FILTER(Sheet1,Sheet1[languagecode]="pt"),[closeReason]),
MAX(Sheet1[closeReason]))

Similarly, I have to write one more DAX for Email which should show always show the value irrespective of languagecode.
Tranlsate_emailcloseby= MAX(emailcloseby) which again having same problem like closereason as row itself gets disappeared

SarikaKumari18_0-1642089766681.png

 

Please see screenshot and refer the  bottom table which doesn't show data for New/Late closecategory.

If there is nothing selected from both slicers then result should be like 

RESULTS :

responseid  closedresponseidclosecategoryemailclosedbycloseReasoncountry
a1b1within 24Hrsabc@gmail.comtestenBelgium
a2b2after 24Hrstest@gmail.comtestePortugal
a3 Late  Italy
a4 Late  Poland
a5 New  Poland
a6 New  France


Please help with this.
Thanks very much in advance !

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry, not very clear.

I'm not sure what you expect when filter selection. The following is the result of neither slicer being selected.

Measure = IF(MAX('Table'[emailclosedby])=BLANK()&&MAX('Table'[closecategory])<>"Late"&&MAX('Table'[closecategory])<>"New",1)

Put the measure into the visual level filter, set show items when the value is 1.

vstephenmsft_0-1642487601277.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry, not very clear.

I'm not sure what you expect when filter selection. The following is the result of neither slicer being selected.

Measure = IF(MAX('Table'[emailclosedby])=BLANK()&&MAX('Table'[closecategory])<>"Late"&&MAX('Table'[closecategory])<>"New",1)

Put the measure into the visual level filter, set show items when the value is 1.

vstephenmsft_0-1642487601277.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks very much @Anonymous , this solved my problem.
I have also achieved by taking distinctcount of responseid in table which can be hidden.

Thanks again for taking time to look into this

Anonymous
Not applicable

@smpa01 @amitchandak @AlexisOlson 
Could you please take a look into this and help me with this.
Sorry for bothering at busy time. 
Your help would be much appreciated! Thanks much in advance

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.