Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
here is my current code and im very new to MDX and playing ard.
SELECT NON EMPTY { [Measures].[Affiliations Count], [Measures].[Practitioners Count] } ON COLUMNS,
NON EMPTY { ([Associations].[Network].[Network].ALLMEMBERS * [Associations].[Health Plan].[Health Plan].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM ( SELECT ( STRTOSET("[All]", CONSTRAINED) ) ON COLUMNS
FROM ( SELECT ( { [Associations].[Record Type].&[Practitioner] } ) ON COLUMNS
FROM ( SELECT ( -{ [Associations].[Health Plan].&[] } ) ON COLUMNS
FROM ( SELECT ( { [Affiliations].[Affiliation Par].&[True] } ) ON COLUMNS
FROM ( SELECT ( { [Affiliations].[Affiliation Incomplete].&[False] } ) ON COLUMNS
FROM ( SELECT ( { [Affiliations].[Affiliation Active].&[True] } ) ON COLUMNS
FROM [FusionCore]))))))
WHERE ( [Affiliations].[Affiliation Active].&[True],
[Affiliations].[Affiliation Incomplete].&[False],
[Affiliations].[Affiliation Par].&[True],
[Associations].[Record Type].&[Practitioner],
IIF( STRTOSET("[All]", CONSTRAINED).Count = 1, STRTOSET("[All]", CONSTRAINED), [Associations].[Corporate Plan].currentmember ) )
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
I have been trying to add a filter funtion or date range in subselect, but not able to achieve or get what i want.
How can I add a line to handle a date range from today through 30 days from now forward?
Solved! Go to Solution.
You just need to use STRTOMEMBER() with Now() function to get the date member for today, then apply the date range as subselect in your MDX.
I have replied the thread you posted on MSDN forum: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/45f744ff-6400-45fc-bbce-93a8c0f9e8f7/adding...
Regards,
You just need to use STRTOMEMBER() with Now() function to get the date member for today, then apply the date range as subselect in your MDX.
I have replied the thread you posted on MSDN forum: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/45f744ff-6400-45fc-bbce-93a8c0f9e8f7/adding...
Regards,
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 2 |