Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi everyone,
Likely this has been answered previously, but can't find the correct search term to get hits.
I've got a setup (simplified below), containing 2 date tables (Calendar and Periods) used to filter various other tables based on different tables.
One date is a daily calendar while the other is a month-start calendar, but they do not cross-filter as for each date in Calendar there may be multiple Periods (months).
For every selected date in "Calendar" all prior dates in "Periods" are by definition "Inactive" and I've been trying to create a boolean Column or Measure to allow allow for this behaviour in a filter within the "Periods" table (simplified model below). Eg. If one selected August 1'st 2022 in "Calendar" July 2022 and prior would be "Inactive" while August and onwards would be Active.
However, my vague attempts as both a measure and column have proven fruitless. One such example is the below example as either unrelated column or measure.
IsActive = SELECTEDVALUE(Periods[Period]) >= SELECTEDVALUE('Calendar'[Report Date])
The goal seems simple to implement within each table individually (in this example "Trades") however, the model contains multiple tables where this logic applies, and I'm trying to achieve a centralized filter for all of them through Periods[Period].
Any suggestions will be much appreciated.
the concept of inactive relationships is about something else entirely. It is targeted for scenarios where you need to connect ONE calendar table multiple times with ONE fact table, for example a transaction table that has order dates,shipping dates, invoice dates and delivery dates.
You cannot abuse the concept of USERELATIONSHIP to avoid circular references.
Thank you Ibendlin for not providing an answer to the question at hand. I have not referenced Userelationship, nor used it in this question.
Have you considered using TREATAS or LOOKUPVALUE instead?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 34 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 66 | |
| 42 | |
| 32 | |
| 25 |