This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I got two tables where Table 1 is Actual Table what achived vs Table 2 which is planned. I have imported both the tables in Power BI and trying to find the percentage of achieved. I am getting the right numbers if no filters are applied, but not working if i keep the date or ID filters. I basically need, count of achived by count of planned in percentage and if any filters applied as well like date and id.
Here is the sample data if needed. Here i kept only 1 date for reference. But in actual data, we got many dates along with different categories of products and other variables aswell.
Thanks in advance.
Solved! Go to Solution.
Create a data model that has dimension tables for the items you want to filter on (ID, Product, Date) and wire them accordingly to your two independent fact tables. Then you can create measures that calculate the percentages according to your selected filters.
Create a data model that has dimension tables for the items you want to filter on (ID, Product, Date) and wire them accordingly to your two independent fact tables. Then you can create measures that calculate the percentages according to your selected filters.
Correct me if i am wrong, are you telling me to create 3 different tables for id, product and dates and manage in relationships tab ?
correct, that is what I am suggesting. Having a data model that fits your business scenario is always the preferred option.
Hi @Rambo92
Can you explain how you are calculating Percentage? (Since there are no numeric fields, I'm guessing it is a row count for distinct combinations or something like that.)
Also, can you show your expected result based on the sample data that you provided.
Thanks
I am calculating by count of rows in both tables, for example in the sample data. If we filter id 1, then it should show 3(actual)/5(planned) which should show 60% achieved on id1.
I need to create a measure which should show based on date and id filters.
In the sample data, there is only 1 date but it has many dates in the original dataset.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 24 | |
| 23 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 28 | |
| 23 | |
| 22 |