Forum Discussion
Scatter plot doesn't match points rightly
- Anonymous8 years ago
Anonymous,
Do you connect to SSAS database or SQL Server database in Power BI Desktop? If you connect to SQL Server using DirectQuery, you are able to use Query Editor in Power BI Desktop.
Also please open updated PBIX file.
Regards,
Lydia
Stupid me, sorry kohlivinayak, I talked until now about scatter plot while I am working with line chart...
I think what differs my report from yours is the data to use for values for line chart: I am working with a DirectQuery from SQL Server database and I am using "Count of column_name" as value. Then I work with filters, which make months with no data disappear, while your month names are fixed, stable. I think working with filters bothers me, I'd need that when you filter data you don't lose data with no values, because no values should mean 0.
No Issues case in scatter and line chart don't vary much.
So why mine is stable i have created a new table having the values of month. Created a relation with actual data table, and will create filter from this table
Table 1 ---> Actual Data
Table 2 (need to be created) ---> Only Month Name/ Month Year Name eg [1,2,3,....,11,12]
Create a relation between these two ( single side filter from table 2 to table 1 )
Create the filter on Table 1 - so that when you filter the table, table 2 values will not be affected, hence measure will be calculated for all the values.
If your filter filters out the values in table 2 you will not see those months hence no zeros.
Thanks
Vinayak
- Anonymous8 years agoNot applicable
Well kohlivinayak, I think the issue now comes to my database, because when working with DirectQuery from Sql Server I can't create new tables, only measures and columns. Don't you now any way to solve it without creating a new table?
- kohlivinayak8 years agoResolver I
Well i am not able to think of any solution with creating a new table as of now, but just a thought, you can create your new table with sql query in direct connection instead of in powerbi.
- Anonymous8 years agoNot applicable
kohlivinayak well yes I think there's no way better than this unfortunately.
Thank you very much for your great hints.
Let me ask you some more. In the example you sent me there were charts ordered by month names. I opened another post about it some time ago, because I didn't find a way to do that, only converting names to numbers was good, but that's not great. I noticed you built a new table in Power BI with dates and month number, getting dates from DAX Calendar function. Do you think this is way you get months names ordered chronologically or is there something else?
Thanks