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

View all the Fabric Data Days sessions on demand. View schedule

Reply
aggkamakshi
Regular Visitor

Not able to summarize for another date column

Hi Team,

 

I have 1 table i.e. 'report' which consist of 3 different types of date columns (date created, service date and paid date) , visits and rest other columns as well (some of which are part of slicers). I have then made date table, which is basically generating series by calculating min and max of date created columns and increaing date by 1. 

 

Futher I have established the relation by making date created relation as active (as it is playing major role in dashboard) and rest 2 relation i.e. service date and paid date as inactive. 

One to many relation is set up between date and report table. Date table is on one side and report table is on many side.

 

I like to calculate distinct count of visits month over month on service date then on paid date. My Measures from 1 to 4 are working well. However in measure 5 it is showing blank values. Can somebody please help why summarize is not able to perform well while calculating visits at paid date - for service date it is working well

 

(Below mentioned calculation is a sub part of main calculations, please help out through DAX only)

 

Measure 1

Trial File_name Visits =CALCULATE(

                                                 DISTINCTCOUNTNOBLANK(

                                                   report[Visit]

                                                   ),

                                                   report[File_name]="File_name"

                                       )

Measure 2

Trial File_Name Visits Paid = CALCULATE(

                                        [Trial file_name Visits],

                                        USERELATIONSHIP(

                                                   'Date Table'[Date_Created],

                                                    report[paid_date]

                                          )

                                      )

Measure 3

Trial file_name Visit SVC = CALCULATE(

                                            [Trial file_name Visits],

                                            USERELATIONSHIP(

                                                          'Date Table'[Date_Created],

                                                           report[svc_date_from]

                                             )

                                 )

Measure 4

Trail file_name Visits Numerator svc = AVERAGEX(

                                                       SUMMARIZE(

                                                                    report_,

                                                                     'Date Table'[Year Month],

                                                                      "#Visit",

                                                                     CALCULATE(

                                                                                 [Trial file_name Visit SVC], 

                                                                                  report[Flag]="Utilization",                     

                                                                                  report[File_name]="File_name"

                                                                      )

                                                           ),

                                                          [#Visit]

                                             )

Measure 5

Trail f ile_name Visits numerator paid = AVERAGEX(

                                                               SUMMARIZE(

                                                                            report,

                                                                            'Date Table'[Year Month],

                                                                            "#Visit",

                                                                             CALCULATE(

                                                                                   [Trial file_name Visits Paid],

                                                                                    report[Flag]="Utilization",

                                                                                    report[File_name]="File_name"

                                                                               )

                                                                 ),

                                                                 [#Visit]

                                                          )

 

Below is the table schema

''Report Table"

Date CreatedService DatePaid DateVisitsRest few columns are part of slicer
2-Jan-185-Jan-184-Jan-18dbehbdh4 
3-Jan-186-Jan-188-Jan-18sdgui78 
5-Jan-1813-Jan-189-Jan-18wuisyw99 
13-Jan-1814-Jan-1811-Jan-18hdiuqedhowqlk0 
17-Jan-1816-Jan-1812-Jan-18bdswudgwu22 
18-Jan-1820-Jan-1821-Jan-18bdwiygi 
27-Jan-1829-Jan-1822-Jan-18wuisyw99 
29-Jan-1830-Jan-1826-Jan-18bdwy78 
2-Feb-182-Feb-181-Feb-18sj082nx 
12-Feb-185-Feb-182-Feb-18bdqwi789 
15-Feb-186-Feb-187-Feb-18bxywi9 
19-Feb-1810-Feb-188-Feb-18dbwq8y87ebx 
21-Feb-1816-Feb-1811-Feb-18snwiu1te87 
8-Mar-1817-Feb-1815-Feb-18sn1iyi 
9-Mar-1818-Feb-1821-Feb-18nxue29u 
12-Mar-1825-Feb-1822-Feb-18xb1t78fyi 
17-Mar-1826-Feb-183-Mar-18xnuo2d9 
18-Mar-1828-Feb-188-Mar-18bc283u 
25-Mar-185-Mar-1811-Mar-18sv8162xgeq 
27-Mar-186-Mar-1820-Mar-18ddh68c 
30-Mar-188-Mar-1821-Mar-18sbw9 

 

"Date Table" i.e. Date = generateseries(min(report[date created]),max(report[date created]),1)

2-Jan-182018-1
3-Jan-182018-1
4-Jan-182018-1
5-Jan-182018-1
6-Jan-182018-1
7-Jan-182018-1
8-Jan-182018-1
9-Jan-182018-1
10-Jan-182018-1
11-Jan-182018-1
12-Jan-182018-1
13-Jan-182018-1
14-Jan-182018-1
15-Jan-182018-1
16-Jan-182018-1
17-Jan-182018-1
18-Jan-182018-1
19-Jan-182018-1
20-Jan-182018-1
21-Jan-182018-1
22-Jan-182018-1
23-Jan-182018-1
24-Jan-182018-1
25-Jan-182018-1
26-Jan-182018-1
27-Jan-182018-1
28-Jan-182018-1
29-Jan-182018-1
30-Jan-182018-1
31-Jan-182018-1
1-Feb-182018-2
2-Feb-182018-2
3-Feb-182018-2
4-Feb-182018-2
5-Feb-182018-2
6-Feb-182018-2
7-Feb-182018-2
8-Feb-182018-2
9-Feb-182018-2
10-Feb-182018-2
11-Feb-182018-2
12-Feb-182018-2
13-Feb-182018-2
14-Feb-182018-2
15-Feb-182018-2
16-Feb-182018-2
17-Feb-182018-2
18-Feb-182018-2
19-Feb-182018-2
20-Feb-182018-2
21-Feb-182018-2
22-Feb-182018-2
23-Feb-182018-2
24-Feb-182018-2
25-Feb-182018-2
26-Feb-182018-2
27-Feb-182018-2
28-Feb-182018-2
1-Mar-182018-3
2-Mar-182018-3
3-Mar-182018-3
4-Mar-182018-3
5-Mar-182018-3
6-Mar-182018-3
7-Mar-182018-3
8-Mar-182018-3
9-Mar-182018-3
10-Mar-182018-3
11-Mar-182018-3
12-Mar-182018-3
13-Mar-182018-3
14-Mar-182018-3
15-Mar-182018-3
16-Mar-182018-3
17-Mar-182018-3
18-Mar-182018-3
19-Mar-182018-3
20-Mar-182018-3
21-Mar-182018-3
22-Mar-182018-3
23-Mar-182018-3
24-Mar-182018-3
25-Mar-182018-3
26-Mar-182018-3
27-Mar-182018-3
28-Mar-182018-3
29-Mar-182018-3
30-Mar-182018-3

 

5 REPLIES 5
Anonymous
Not applicable

Hello, i am having the same problem, did you find the solution? thank you

Anonymous
Not applicable

Hi @aggkamakshi ,

 

In Measure 5, I found that you are referencing the Year Month column of the Date Table in the report table, which is unavailable.

vstephenmsft_0-1641794168153.png

vstephenmsft_1-1641794207287.png

 

 

 

Best Regards,

Stephen Tao

 

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

 

 

I have 2 tables, in my date table I have having year month column. For more understadnind please refer measure 4 which is working well, however things are not working with paid date

lbendlin
Super User
Super User

Your [Date] column in the Calendar table should not be named [Date_Created] - that is confusing.  

 

Can you confirm that in your visuals you use the [Date] column from the Calendar table?

I have 2 tables, date table is a generated series from min and max of date created further I have extracted year and month from the date created columns i.e. date table[date created] and date created[year month]

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors