Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi, I´m need some advice for a problem that I´am trying to solve. I learn the basic from SQL and PowerBI and managed to solve some pieces but I need directions to sum all together.
What I have:
I have 3 tables on a SQL database of a medical institution.
What I need:
What I did:
I manage to do this in SQL. For example for the second, I used INNER JOIN of the tables and do a AND NOT EXIST of another SELECT).
What I Tried in PowerBI:
I tried to do my SQL query from POWERBI. I success at first but then I have some errors: SQL to long and column error. (my SQL query is
Then I import the tables with all the data and do a first join on power bi but i get stuck on how i do the custom function.
Same as before but I tried to do a function that use my SQL query but with the tables that I already import to POWERBI.
I need someone to point me out a the direction to solve this and what is the best approach. I will do the rest.
Regards....and thanks!
Hi @DSgUY ,
Taking into account your description, I assume that the tables 2 and 3 have unique identifiers, based on this you should make the sql link to each one of the tables on PBI.
After that you should create the relation between the table 2 and table 1 and table 3 and table 1 this will give you the called star schemma and then you can make your filtering based on this relationships.
You should also add a calendar table to link to table one to have your time related calculations.
Check the link below about the relationship creation on PBI.
https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix thanks for your fast reply!
I'm immediately start using your tips and work for hours to get what is next....
What I have done:
As you can see I have:
Stuck in:
Iinks used:
All the data shown above was created by me to simulate what I want to do and is totally random and nonsense ....
Regards.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
124 | |
76 | |
71 | |
57 | |
50 |
User | Count |
---|---|
162 | |
84 | |
68 | |
66 | |
61 |