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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
bergen288
Helper IV
Helper IV

Create a measure for cases with multiple assignees in text box.

I have the following 2 meausres in my Power BI report:

Number of Cases = DISTINCTCOUNTNOBLANK('PBI_XZ_Case_Time_Session'[Case_ID])
Number of Assignees = DISTINCTCOUNTNOBLANK('PBI_XZ_Case_Time_Session'[Created_By])
In the screenshot below, the table has the list of Cases with multiple assignees: the total cases with multiple assignees are 297,371.  How may I create a new measure so that the total cases with multiple assignees (297,371) can be used in a text box?
bergen288_0-1679425481894.png

 

5 REPLIES 5
bergen288
Helper IV
Helper IV

Below is my updated measure to show if the value is blank or not.

Number of Cases V2 =
    VAR __Case2 =
        CALCULATE( [Number of Cases], FILTER( 'PBI_XZ_Case_Time_Session', [Number of Assignees] >= 2) )
    RETURN IF(ISBLANK(__Case2),"N/A",FORMAT(__Case2, "General Number"))
 And the screenshot below shows the result is blank. So what's wrong with my measure?
bergen288_2-1679493041092.png

 

WinterMist
Impactful Individual
Impactful Individual

Interesting.  The only time I've seen that icon is when an item is hidden in the data fields pane.

But clearly these measures are not hidden.  So I'm confused.

 

Perhaps a DAX guru will see this and provide the answer.

 

If not, I'm afraid I would need a small test data set to investigate further.

Without being able to replicate the problem, I'm stuck at this point.

 

Regards,

Nathan

bergen288
Helper IV
Helper IV

I did a search and found the following page: https://p3adaptive.com/2012/06/filter-when-why-how-to-use-it/.  So I modified my measure as below:

Number of Cases V2 =
CALCULATE(
  [Number of Cases],
  FILTER('PBI_XZ_Case_Time_Session', [Number of Assignees] >= 2)
)
Now there is no DAX error, but it doesn't show any number in text box.  What's wrong with it?
bergen288_1-1679490642209.png

 

 
WinterMist
Impactful Individual
Impactful Individual

@bergen288 

 

I'm not able to test it without access to the data, but it looks like you just need to create the following new measure that includes your visual filter.

 

Number of Cases V2 =
CALCULATE(
  [Number of Cases],
  [Number of Assignees] >= 2
)

 

Hopefully that works.

 

Regards,

Nathan

Nathan:

 

I tried, but got the following error:

bergen288_0-1679489345599.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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