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.
The green card in the pbix file and the slicer, are from different tables. That's why when I changed the "Purpose" slicer, the data in the card won't change.
I cannot change the relationship model because I have so many other tables, and it is quite complicated. Is there any DAX to make the data change when I choose the "Purpose" slicer?
I have tried to create this column in COST Table but it won't work. Plan_lookup = LOOKUPVALUE(plan[Count Plan],plan[YEAR],cost[YEAR], plan[Purpose], cost[PURPOSE])
This is supposed to be the output.
Solved! Go to Solution.
Hi,@Anonymous
According to the sample you've provided,if you are willing to make some adjustments to the model, that would be great.
You can try to create two new tables, such as the following:
PURPOSE = DISTINCT(UNION(VALUES(dms[PURPOSE]),VALUES(plan[Purpose])))
Year = DISTINCT(UNION(VALUES(dms[YEAR]),VALUES(plan[YEAR])))
Then you can create relationships between these tables:
When you back to the report view,you will see:
Here is the demo , please try it:
For a better way to optimize your existing model, we recommend using the star schema. https://docs.microsoft.com/en-us/power-bi/guidance/star-schema
It describes star schema design and its relevance to developing Power BI data models optimized for performance and usability.
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi,@Anonymous
According to the sample you've provided,if you are willing to make some adjustments to the model, that would be great.
You can try to create two new tables, such as the following:
PURPOSE = DISTINCT(UNION(VALUES(dms[PURPOSE]),VALUES(plan[Purpose])))
Year = DISTINCT(UNION(VALUES(dms[YEAR]),VALUES(plan[YEAR])))
Then you can create relationships between these tables:
When you back to the report view,you will see:
Here is the demo , please try it:
For a better way to optimize your existing model, we recommend using the star schema. https://docs.microsoft.com/en-us/power-bi/guidance/star-schema
It describes star schema design and its relevance to developing Power BI data models optimized for performance and usability.
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , please find the various ways to copy data from one table to another. Please see if my video can help
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |