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
Damian88
Frequent Visitor

Dynamic Data Table to store calculation

Hi,

 

I want to create Dynamic Table that will be a source for Chart (if its possible to create chart without creating seperate table is even better)

 

I need to create chart with info how many unique Customers were wisited X times  (1 time,2 times, 3 Times etc)

It should be possible to filter period or other components

 

I thout that there is option to create supporting dinamic Table that will count number of distinct "Interaction ID" for distinct "customer" as bellow  -there is one customets that have 4 unique Interaction ID (C4) 

 

I was able to create such column in current data table but changing filters does not relaculate results (because they are not related with date) so maybe supportin table will hepl

 

 

case 1.jpg

 

 

I will be werry gratefull for some tips

 

Thnx

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

Hi @Damian88 ,

 

I suggest you to create a dimcountdate table firstly and then create a count customer measure.

Dynamic Day = 
VAR _SUMMARIZE = SUMMARIZE(ALL('Table'),'Table'[Customer],"CountDate",COUNT('Table'[Date]))
RETURN
GENERATESERIES(1,MAXX(_SUMMARIZE,[CountDate])+1)

Measure:

Count Customer = 
VAR _SUMMARIZE = SUMMARIZE('Table','Table'[Customer],"CountDate",COUNT('Table'[Date]))
return
COUNTAX(FILTER(_SUMMARIZE,[CountDate] = MAX('Dynamic Day'[Count Date])),[Customer]) + 0

Result is as below.

vrzhoumsft_0-1685690213471.png

vrzhoumsft_1-1685690222181.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 @Damian88 ,

 

I suggest you to create a dimcountdate table firstly and then create a count customer measure.

Dynamic Day = 
VAR _SUMMARIZE = SUMMARIZE(ALL('Table'),'Table'[Customer],"CountDate",COUNT('Table'[Date]))
RETURN
GENERATESERIES(1,MAXX(_SUMMARIZE,[CountDate])+1)

Measure:

Count Customer = 
VAR _SUMMARIZE = SUMMARIZE('Table','Table'[Customer],"CountDate",COUNT('Table'[Date]))
return
COUNTAX(FILTER(_SUMMARIZE,[CountDate] = MAX('Dynamic Day'[Count Date])),[Customer]) + 0

Result is as below.

vrzhoumsft_0-1685690213471.png

vrzhoumsft_1-1685690222181.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
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.