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

Different measures show the same results when report is published

I have a report with several measures that calculate scans on different date ranges and show different results.

 

Desktop report

sgroth001_0-1667334715286.png

 

When I publish the report, the measures all show the same value -- and it's not even the right value!

 

Published report

sgroth001_1-1667334825075.png

 

The report uses direct query for incremental refresh and real-time data, so there is more data in the published report.  However, none of the Prior Year (PY) stats should be any different, and they definitely shouldn't all be the same. 

 

I don't think this matters because variables only exist within the calculation of a measure, but just in case, I'll share that each of the measures follow similar constructs and use the same variable names.  For example

 

PY2 WY Scan Units =
VAR TodayDate = Today()
VAR TodayYear = year(TodayDate)
VAR StartDate = calculate(min('Date'[Date]),'Date'[Calendar Year]=TodayYear - 2)
VAR EndDate = calculate(max('Date'[Date]),'Date'[Calendar Year]=TodayYear - 2)
Return calculate([Scan Units],datesbetween('Date'[Date],StartDate,EndDate))
 
and
 
PY WY Scan Units =
VAR TodayDate = Today()
VAR TodayYear = year(TodayDate)
VAR StartDate = calculate(min('Date'[Date]),'Date'[Calendar Year]=TodayYear - 1)
VAR EndDate = calculate(max('Date'[Date]),'Date'[Calendar Year]=TodayYear - 1)
Return calculate([Scan Units],datesbetween('Date'[Date],StartDate,EndDate))

 

I appreciate any help on fixing this bug.

 

1 ACCEPTED SOLUTION
sgroth001
Frequent Visitor

I found my mistake.  I had set the incremental refresh parameters to exclude all the data that would have been captured in the measures.

 

sgroth001_0-1667426852328.png

That's not going to include any prior-year data.

View solution in original post

4 REPLIES 4
sgroth001
Frequent Visitor

I found my mistake.  I had set the incremental refresh parameters to exclude all the data that would have been captured in the measures.

 

sgroth001_0-1667426852328.png

That's not going to include any prior-year data.

sgroth001
Frequent Visitor

If I take out the incremental refresh, the published report renders correctly.

amitchandak
Super User
Super User

@sgroth001 , Clear Browser cache -> Refresh and try

or

Republish -> Clear Browser cache -> Refresh and try 

@amitchandak   Thanks for your reply.  Clearing the cache and republishing didn't work.  The values are still repeated across different measures.  Interestingly, different values are now being repeated, but it's still the same problem.

 

To offer a little more context, the report showing duplicated values across measures is my "Golden Dataset" that I'm using as the data source for another report.  That report also shows the duplicated values.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.