User Profile
DaxNovice
Frequent Visitor
Joined 6 years ago
User Widgets
Contributions
Re: Dynamically query all SharePoint sites with same list name, but can't refresh online
I have a similar issue, A list of sharepoint sites stored in a list. I just wat to know how many files have been submitted to each site each month Works fine on pbix, but too dynamic for dataflow or service refresh. This should be possible, its within Microsoft's infrastructure and surely not that unusual let Source = (SP as text ) => let Source = SharePoint.Files(SP), #"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Folder Path], "/Sharing/")), #"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Date created", type date}}), #"Grouped Rows" = Table.Group(#"Changed Type", {"Date created"}, {{"Files by Day", each Table.RowCount(_), Int64.Type}}) in #"Grouped Rows" in Source1.1KViews0likes0CommentsGlobal COVID/Coronavirus 19 Dashboard
Covid dashboard based on the JHCSSE Datasource. Along with my own calculations & analysis Source https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series eyJrIjoiZWMzYWMzNDUtZjJhZC00ZTllLWI1NGUtYzIwZWNlZTM0NDE3IiwidCI6ImZhZmQzNjI5LWJkYjYtNGVhOS1hMmQ5LWY2MjEwN2ViYTkwMSIsImMiOjEwfQ%3D%3D682Views0likes0CommentsCOVID19 UK dash
United Kingdom Dashboard containing cases per UTLA & other breakdowns Sources: https://www.gov.uk/government/publications/covid-19-track-coronavirus-cases https://docs.google.com/spreadsheets/d/18YDwo8yR8oC_WwtYyFncGVSNAnxEddLZoOXtr_kDpC0/edit#gid=0 eyJrIjoiNDc5MjFjNmUtMmUxOS00YTk3LThlMjEtNjlmOTU3OTFmMjU0IiwidCI6ImZhZmQzNjI5LWJkYjYtNGVhOS1hMmQ5LWY2MjEwN2ViYTkwMSIsImMiOjEwfQ%3D%3D569Views0likes0CommentsRe: Cannot Schedule refresh Azure SQL Database
Hi venal Thanks. Yes, it works with static Sql.Database("Server name","Database name") but not with parameterized server & DB which is the issue. from this link here Note Power BI currently does not support parameterized data source definitions, also known as dynamic data sources. For example, you can't parameterize the data access function Sql.Database("SqlServer01", "AdventureWorks"). If your dataset relies on dynamic data sources, Power BI informs you that it detected unknown or unsupported data sources. You must replace the parameters in your data access functions with static values if you want Power BI to be able to identify and connect to the data sources. For more information, see Troubleshooting unsupported data source for refresh. But clicking that link gives you no further info on how to fix other than static server name & database which is not a viable option for this dataset. I understand this could be a bit of a niche problem but if anyone has had this and has a solution I would be most grateful Error message here if this helps: Something went wrong There was an error when processing the data in the dataset. Please try again later or contact support. If you contact support, please provide these details. Data source error: Unable to refresh the model (id=7923608) because it references an unsupported data source. Cluster URI: WABI-NORTH-EUROPE-redirect.analysis.windows.net Activity ID: ff09dc5c-42df-458a-97c7-7b0a060af6bc Request ID: 0e77e53b-7597-d328-b8dc-7363438cb002 Time: 2019-11-13 06:08:02Z1.7KViews0likes0CommentsRe: Cannot Schedule refresh Azure SQL Database
HI Lin I am not sure that helps. The source is SQL.Database, which is a supported source for data refresh. This is also an Azure SQL database so there is no need for a gateway. I gather that this is probably due to the functions but there is no documentation that I can find to help with this. Refresh works find on the .pbix file1.7KViews0likes0CommentsCannot Schedule refresh Azure SQL Database
Hi I am currently getting the error message below when trying to refresh from the service (works fine on desktop): You can't schedule refresh for this dataset because the following data sources currently don't support refresh: (List of Queries, all from SQL Database) Query contains unsupported function. Function name: Sql.Database From the refresh history the error message is : Data source error: Unable to refresh the model () because it references an unsupported data source The purpose of the function is to append together mulitple databases & servers that have the same structure into one single table. e.g. advanced editor below: let Source = #"DB & Server", #"Changed Type" = Table.TransformColumnTypes(Source,{{"Server", type text}, {"DB", type text}}), #"Invoked Custom Function" = Table.AddColumn(#"Changed Type", "pbig MP", each #"pbig MP"([DB], [Server])), #"Expanded Query1" = Table.ExpandTableColumn(#"Invoked Custom Function", "pbig MP", {"Name", "Data", "Schema", "Item", "Kind"}, {"Name", "Data", "Schema", "Item", "Kind"}) in #"Expanded Query1" The Source "Db & Server" has two columns, DB & Server, and 4 rows with unique Db & server combinations. Has anyone had this issue before & managed to solve? advanced editor text of the function is: (DB as text, Serv as text) as table => let Source = Sql.Database(Serv, DB) in Source1.8KViews1like4CommentsRe: Month to date comparison with previous month line chart
I believe I have figured it out now. Thanks, your solution got me on the way to what I needed. I managed to do it without the need for variables (as I always want the chart to go to 31 even if both months finish before then. Code below for anyone interested and needing the same solution MTD = CALCULATE (TOTALMTD([Sales],DimDate[Date]), FILTER ( ALL (Daysofmonths[dayofmonth] ), Daysofmonths[dayofmonth] <= MIN ( Daysofmonths[dayofmonth] ) )) MTD -1 = CALCULATE(TOTALMTD([Sales],DATEADD(DimDate[Date],-1,MONTH)),FILTER ( ALL ( Daysofmonths ), Daysofmonths[dayofmonth] <= max ( Daysofmonths[dayofmonth] )))5.8KViews0likes0CommentsRe: Month to date comparison with previous month line chart
Hi sturlaws Thanks for the reply but I still am having the same issue with this. I.e. if I filter by Feb, the Jan line will also stop at 28 instead of 31. I have attached a link of what I am trying to achieve, would be great if you could have a look Link to dropbox Thanks in advance5.8KViews0likes0CommentsMonth to date comparison with previous month line chart
Hi experts I have been trying and failing for a while so thought I would post here. I am trying to compare current month to date with the 2 previous periods. I have: Total MTD = TOTALMTD([Sales],DimDate[Date]) MTD -1 = CALCULATE([Total MTD],DATEADD( DimDate[Date],-1,MONTH)) MTD -2 = CALCULATE([Total MTD],DATEADD(DimDate[Date],-2,MONTH)) This works fine in the line chart where the x axis = day as expected. The issue is, when the current month is a shorter month, it limits all months to the same day (e.g. current month = Feb, lines stop at 28) Is there a way to show either all months carrying on to 31 regardless of month, or each month stopping at their last day (e.g. feb stops 28, May stops 31, June stops 30 etc) Thanks in advanceSolved5.9KViews1like3Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.