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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SushmaReddy
Helper I
Helper I

DAX Tip

Hi Team,

I created a calculated Column using the below mentioned logic and getting correct output.

C1 = RANKX(T1,CONCATENATE(T1[Processing Date],T1[Version or Model Number] &Single_Material[Status]))

The problem is it is displaying "blank" if there are no records where i want to display "0".Please help me to fix the issue.

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @SushmaReddy ,

 

Glad to know that!😀

please kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

View solution in original post

8 REPLIES 8
v-eqin-msft
Community Support
Community Support

Hi @SushmaReddy ,

 

Glad to know that!😀

please kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @SushmaReddy ,

 

So...if your issue has been resolved or not?

 

Best Regards,
Eyelyn Qin

Yes...the issue is resolved....

v-eqin-msft
Community Support
Community Support

Hi @SushmaReddy ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Best Regards,
Eyelyn Qin

Hi Eyelyn Qin,

    I have used different logic as shown

 Processing Details =

CONCATENATE(T1[Processing Date & Time],T1[Version or Model Number] &T1[Status])
and use this logic in a Measure as shown below where i got "0" instead of "Blank".
Processing Data = DISTINCTCOUNT(T1[Processing Details])+0
v-eqin-msft
Community Support
Community Support

Hi @SushmaReddy ,

 

Please try to add +0 in the end to replace the blank value:

 

C1 = RANKX(T1,CONCATENATE(T1[Processing Date],T1[Version or Model Number] &Single_Material[Status]))+0

 

 

If the issue still exist, please provide more details about your table or share your pbix file after removing sensitive data to help us clarify your scenario.

 

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

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

SushmaReddy
Helper I
Helper I

Hi...I am happy for your immediate response but the issue is still same...

Blank is still displaying in the visual.

Anonymous
Not applicable

Try This
C1 =
VAR  _c1 =
  RANKX(T1,CONCATENATE(T1[Processing Date],T1[Version or Model Number] &Single_Material[Status]))
VAR RESULT =
  IF(_c1=Blank,0,_c1)
RETURN RESULT

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors