The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am trying to create a variance report using a Metrics visual and a static table (that I am thinking about having a static data in SQL).
I created a metric visual as shown below:
These numbers were generated based on Count of outcome for each rows.
I have an illustration of data in a similar fashion (tabular) that I am trying to set up as a static table in SQL as shown below:
This data/table will eventually be used to do the variance report (find the difference on same category).
These data are not created in a table yet.
Now, I am trying to find the best approach to prepare data for the second table.
I don't think having a dummy data that repeats each row (just to create a Count for Aggregation) makes sense.
I guess the issue is how to compare data, one in visual (that have been aggregated in metrics) and other that have not been prepared yet.
Thank you for help!
Solved! Go to Solution.
Hi @JustinDoh1
I think you want to build a static table in data model like second screenshot.
You can try to use Power Query to transform your data model. I build a sample like yours to have a test.
Sample:
Matrix:
Firstly we need to use Group By function to get Count column as below.
Then we pivote "Matrix Column" as below to get the result.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for your feedback.
I ended up doing this process:
1) Created a static table (Table2) for the second data.
2) Created a joined key (called 'JoinKey') for the two tables (Table1 and Table2).
3) I joined Many to Many relationship for the two tables (using the joined key 'JoinKey').
4) Tried with Quick Measure (for the first time 🙂 ).
It generated a measure like this:
It worked somehow. 🙂
I have a question. What is risk of having Many to Many relationship?
Hi @JustinDoh1
I think you want to build a static table in data model like second screenshot.
You can try to use Power Query to transform your data model. I build a sample like yours to have a test.
Sample:
Matrix:
Firstly we need to use Group By function to get Count column as below.
Then we pivote "Matrix Column" as below to get the result.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for your feedback.
I ended up doing this process:
1) Created a static table (Table2) for the second data.
2) Created a joined key (called 'JoinKey') for the two tables (Table1 and Table2).
3) I joined Many to Many relationship for the two tables (using the joined key 'JoinKey').
4) Tried with Quick Measure (for the first time 🙂 ).
It generated a measure like this:
It worked somehow. 🙂
I have a question. What is risk of having Many to Many relationship?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
1 | |
1 | |
1 |