The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I brought in a table from SQL database using DirectQuery (needed to solution a PowerApp inside the PBI visual).
The PBI visual is a table listing projects, each project has multiple attributes with each attribute appearing as a column in the table visual.
However, the data doesn't appear to be "clean". For example, I noticed that one project has 2 rows, every attribute about the project is identical for the 2 rows EXCEPT the Project Director name - there are 2 names, so the project appears twice (in 2 rows).
I understand that with DirectQuery you cannot create steps such as removing duplicates.
HOW can I remove duplicate records then when it is DirectQuery mode?
Thank you!
Solved! Go to Solution.
For long term, I would talk to your DBA to get the data in the format you need. In the short term, if you can't switch to import mode (recommended to get the flexibilty you need and improve performance), you can use the SUMMARIZE function in your measures to get the distinct combination of the fields you need (e.g., leave out the Director field).
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
For long term, I would talk to your DBA to get the data in the format you need. In the short term, if you can't switch to import mode (recommended to get the flexibilty you need and improve performance), you can use the SUMMARIZE function in your measures to get the distinct combination of the fields you need (e.g., leave out the Director field).
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks Pat. I think I will go with the DBA route, it seems cleaner. Thanks again!
Hi @Anonymous ,
Please try the proposed solutions in this URL: https://community.powerbi.com/t5/Desktop/Remove-duplicates-in-direct-query/m-p/238430
User | Count |
---|---|
86 | |
84 | |
34 | |
34 | |
34 |
User | Count |
---|---|
94 | |
79 | |
63 | |
55 | |
51 |