Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello All,
I have a series of measures calculating Turnover based on different time frames, for example:
Inv_Last_Month = CALCULATE([Turnover £], 'Date'[IsLastMonth?] = "True")
My 'Turnover £' field is a measure as I am required to convert from €.
'IsLastMonth?' is calculated at query level, returning true or false.
There are no errors in either of the above fields, and the measure appears correct and shows the correct figure in Desktop.
When I initially publish the report to BI Online the figures still appear correct, but when I go back to check a little while later or after a scheduled refresh, all of these measures show (blank).
I have tried everything to get the measures to stay up, including deleting and recreating measures, adjusting relationships and clearing cache, but nothing appears to have worked.
Please can somebody help??
Thank you in advance!
Hi @J_R_Cribb,
Can you share some sample data to test? I can't reproduce your issue.
In addition, which mode you used to connect the datasource, import or direct query?
Regards,
Xiaoxin Sheng
Hi @v-shex-msft
Thank you for your reply.
As most of my data is confidential, what sample can I provide that you think would be of use?
All data is Imported, not direct query.
Thanks,
HI @J_R_Cribb,
>>As most of my data is confidential, what sample can I provide that you think would be of use?
Can you provide the table structure and calculated measure formula? I will build a sample to test.
Regards,
XIaoxin Sheng
Hi @v-shex-msft
I have a Revenue table that includes the following fields (simplified):
I have the following conditional columns added at query level, all of which return true/false:
The measures I then have in my report are as follows:
Inv This Week = CALCULATE(sum('Revenue'[Invoice Value £]), 'Revenue'[ThisWeek?] = "True") Inv Last Week = CALCULATE(sum('Revenue'[Invoice Value £]), 'Revenue'[PreviousWeek?] = "True") Inv This Month = CALCULATE(sum('Revenue'[Invoice Value £]), 'Revenue'[ThisMonth?] = "True") Inv Last Month = CALCULATE(sum('Revenue'[Invoice Value £]), 'Revenue'[LastMonth?] = "True")
The Measures work absolutely fine and are correct in BI Desktop, and continue to be correct when I manually refresh in Desktop.
The problem occurs when I publish the report to the Online Service, where at some point the measure just returns a (blank) value?? This could potentially happen during a scheduled refresh?
I would then need to refresh the report manually in desktop and then reupload, which is less than ideal.
I hope data sample is satisfactory, if not please do let me know.
Thank you in advance @v-shex-msft!
Hi @J_R_Cribb,
I think the issue may related to your conditional columns, if you use calculated column to instead, do this issue appears again?
conditional sample:
this_week= if(AND(WEEKNUM([Date],1)=WEEKNUM(TODAY(),1),YEAR([Date])=YEAR(TODAY())),"True") last_week= if(AND(WEEKNUM([Date],1)=WEEKNUM(MAX('Table'[Date]),1),YEAR([Date])=YEAR(MAX('Table'[Date]))),"True") this_month= if(FORMAT([Date],"mm/yyyy")=FORMAT(TODAY(),"mm/yyyy"),"True") last_month= if(FORMAT([Date],"mm/yyyy")=FORMAT(MAX('Table'[Date]),"mm/yyyy"),"True")
Regards,
Xiaoxin Sheng
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
34 | |
30 | |
18 | |
12 | |
8 |
User | Count |
---|---|
50 | |
35 | |
30 | |
15 | |
12 |