Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I have a formula which I use to calculate the total number of active memberships at any given date using the start date and end date of the membership to work this out. This works fine throughout my reporting as it stands, but I am trying to get a very specific set of DAX functions to work (the principle one being a set of expressions requiring this count data which are driving a visual showing the last 12 months of data from the selected date) and I am pretty sure having this data defined in a table like all the other datasets I have (where the intended visual works fine) will solve the problem. Sadly the same expression doesn't seem to work in a calculated table:
I haven't really tried to build any calculated tables before so am not hugely familar with rules around this, so any help woudl be great appreciated!
Many thanks
Michael
Solved! Go to Solution.
@MichaelBauld , Use the below DAX for new column
DAX
ActiveMembershipsTable =
ADDCOLUMNS (
'Calendar MASTER',
"Total Household Count",
VAR CurrentDate = 'Calendar MASTER'[Date]
RETURN
SUMX (
FILTER (
'Member_Warehouse',
'Member_Warehouse'[validfrom] <= CurrentDate
&& (
ISBLANK ( 'Member_Warehouse'[End Date using statecode])
|| 'Member_Warehouse'[End Date using statecode] > CurrentDate
)
),
1
)
)
Proud to be a Super User! |
|
@MichaelBauld , Use the below DAX for new column
DAX
ActiveMembershipsTable =
ADDCOLUMNS (
'Calendar MASTER',
"Total Household Count",
VAR CurrentDate = 'Calendar MASTER'[Date]
RETURN
SUMX (
FILTER (
'Member_Warehouse',
'Member_Warehouse'[validfrom] <= CurrentDate
&& (
ISBLANK ( 'Member_Warehouse'[End Date using statecode])
|| 'Member_Warehouse'[End Date using statecode] > CurrentDate
)
),
1
)
)
Proud to be a Super User! |
|
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |