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
Peter_Jeyaraj_I
Helper II
Helper II

Single Monthly trend by using 2 Timestamp and 2 ID values from Same Dataset

Hi Team, 

 

i have 2 different IDs and 2 different timestamp & trying to show the monthly wise IDs count in same chart. 

See below sample data

ID1TimeSTamp1ID2TimeSTamp2
11/4/2018101/20/2018
21/4/2018112/20/2018
32/8/2018123/20/2018
32/8/2018133/20/2018
42/8/2018143/20/2018

 

chart i am looking 

 

 img

 

1 ACCEPTED SOLUTION

Hi @Peter_Jeyaraj_I

 

You may create the relationships as below and use USERELATIONSHIP Function.Here is the article for your reference.

Count_ID1 = DISTINCTCOUNT(Table1[ID1])
Count_ID2 = CALCULATE(DISTINCTCOUNT(Table1[ID2]),USERELATIONSHIP('Calendar'[Date],Table1[TimeSTamp2]))

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
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

4 REPLIES 4
Peter_Jeyaraj_I
Helper II
Helper II

Capture4.JPG

this s the chart i am looking for.. please share your inputs

Hi @Peter_Jeyaraj_I

 

You may create the relationships as below and use USERELATIONSHIP Function.Here is the article for your reference.

Count_ID1 = DISTINCTCOUNT(Table1[ID1])
Count_ID2 = CALCULATE(DISTINCTCOUNT(Table1[ID2]),USERELATIONSHIP('Calendar'[Date],Table1[TimeSTamp2]))

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-cherch-msft

 

It's working fine.  Filter option & Userrelationship works fine separately. but when i put these 2 together then i am getting below error message

"There's not enough memory to complete this operation".. see below dax to get rolling 12 months sum

 

Der_Last12M_Failures =
var MinMonth = IF((MIN(FE_DDSCALLRATE[Der_Reg_YYYYMM])) = 0,BLANK(),LEFT(MIN(FE_DDSCALLRATE[Der_Reg_YYYYMM]),4)-1 & RIGHT(MIN(FE_DDSCALLRATE[Der_Reg_YYYYMM]),2))
RETURN
CALCULATE([Der_DistinctCntFailures],
FILTER(ALL(FE_DDSCALLRATE),
FE_DDSCALLRATE[Der_Reg_YYYYMM] >= value(MinMonth) &&
FE_DDSCALLRATE[Der_Reg_YYYYMM] < MAX(FE_DDSCALLRATE[Der_Reg_YYYYMM])),
USERELATIONSHIP(Month_Lookup[Der_Deliver_YYYYMM],FE_DDSCALLRATE[Der_Reg_YYYYMM])
)

Hi @Peter_Jeyaraj_I

 

It seems you may try to optimize your data model. Please refer to this post.If it is not your case,I would suggest you create a new thread on forum so that more community members can see it and provide advice. Please remember to post dummy data and desired result.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.