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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

Help creating the following measures? Data Sample Included

So I have the following data. I filtered for Jan 2023 just for demostration purposes. 

I want to create a measure that counts all the Yellows in Date Originated. (count = 10)

Date_Originated.png

 

Same data but filtered Date Released to Jan 2023(Demostration purposes).

I want another measure that counts rows of those in Status of Incorporated, accounting only for Date Released. (count = 32)

Date_Released.png

Goal:

I want to create a clustered column chart that has total yellows in one column(Measure 1) and total incorporated in another(Measure 2). 

 

How would I achieve this?

 

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

Hi @powerbinoobster ,

 

Here I suggest you to create inactive relationships between 'Calendar'[Date] and 'Table'[Date Originated] & 'Table'[Date Released].

Sample:

RicoZhou_1-1677574906905.png

Data model:

RicoZhou_0-1677574890435.png

Measure:

Measure 1 = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Calendar'[Date],'Table'[Date Originated]),'Table'[Priority] = "YELLOW")
Measure 2 = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Calendar'[Date],'Table'[Date Released]),'Table'[Status] = "Incorporated")

 Result is as below.

RicoZhou_2-1677574953163.png

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @powerbinoobster ,

 

Here I suggest you to create inactive relationships between 'Calendar'[Date] and 'Table'[Date Originated] & 'Table'[Date Released].

Sample:

RicoZhou_1-1677574906905.png

Data model:

RicoZhou_0-1677574890435.png

Measure:

Measure 1 = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Calendar'[Date],'Table'[Date Originated]),'Table'[Priority] = "YELLOW")
Measure 2 = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Calendar'[Date],'Table'[Date Released]),'Table'[Status] = "Incorporated")

 Result is as below.

RicoZhou_2-1677574953163.png

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.