Forum Discussion
creating a filter with no relationship
I am comparing two categories, Commitment and actual spend. . Commitment identifies the amount of money the company is willing to spend on equipment. Actual spend identifies the amount that was actually spent on that equipment.
Both Commitment and actual spend can be tracked by purchase order number . Commitment data includes all Purchase orders and actual spend only includes purchase orders that were approved. Commitment data will also contain purchase orders that are listed multiple times. I would like to create a slicer that that allows me to toggle between total actual spend amount and total commitment amount but actual spend and commitment are two different tables and I dont know how to manipulate the data to allow me use them as filters. Anyone have a suggestion
| Commitment | ||
| Date | Purcahse Order | Amount |
| 1-Jan | 1 | 100 |
| 1-Jan | 1 | 250 |
| 1-Jan | 2 | 110 |
| 2-Jan | 2 | 10 |
| 3-Jan | 3 | 80 |
| 3-Jan | 4 | 21 |
| 3-Jan | 5 | 20 |
| 4-Jan | 6 | 100 |
| 5-Jan | 7 | 100 |
| Actual Spend | ||
| Date | Purchase Order | amount |
| 4-Jan | 1 | 100 |
| 5-Jan | 3 | 240 |
| 6-Jan | 4 | 110 |
| 7-Jan | 5 | 10 |
| 8-Jan | 7 | 20 |
dw700d , Create a common date table. If the purchase is dimension value. Have a common dimension with that and join these two tables and you can analyze that
refer: https://radacad.com/power-bi-basics-of-modeling-star-schema-and-how-to-build-it
You can now analyze them together
Or can have slicer : https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
Appreciate your Kudos.
4 Replies
- amitchandak
Super User
dw700d , Create a common date table. If the purchase is dimension value. Have a common dimension with that and join these two tables and you can analyze that
refer: https://radacad.com/power-bi-basics-of-modeling-star-schema-and-how-to-build-it
You can now analyze them together
Or can have slicer : https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
Appreciate your Kudos. - lbendlin
Super User
Have a look at the TREATAS() function. It allows you to apply filters across unrelated tables.
- dw700d
Post Patron
lbendlin I meant to say I would like to create a SLICER that that allows me to toggle between total actual spend amount and total commitment amount but actual spend and commitment are two different tables and I dont know how to manipulate the data to allow me use them as filters. Not sure if that changes your recomendation
- lbendlin
Super User
It doesn't matter what you use for filtering. Can be a slicer, a visual level filter, page level, etc.