Forum Discussion
Dax Measure error returning back all the Months when Q1 is selected in Slicer
Hi All
I have managed to modify the DAX - I get the YEAR and The Correct QUARTER but the issue now is when i Select YEAR 2022, QRT (Q1) - i get all the months of the year as opposed to just the months that relate to Q1 (JAN, FEB, MAR)
Referrals Selection =
IF(ISFILTERED('SWICCData'[datedischarged].[Year]) || ISFILTERED('SWICCData'[datedischarged].[Quarter]) || ISFILTERED('SWICCData'[datedischarged].[Month])," | Year> " & CONCATENATEX(FILTERS('SWICCData'[datedischarged].[YEAR]),'SWICCData'[datedischarged].[Year],", ")) &" "& CONCATENATEX(FILTERS('SWICCData'[datedischarged].[Quarter]),'SWICCData'[datedischarged].[Quarter],", ") &" "& CONCATENATEX(FILTERS('SWICCData'[datedischarged].[Month]),'SWICCData'[datedischarged].[Month],", ") &
IF(ISFILTERED('SWICCData'[Practice_Name])," | Service> " & CONCATENATEX(FILTERS('SWICCData'[Practice_Name]),'SWICCData'[Practice_Name],", ")) &
IF(ISFILTERED('SWICCData'[WARD])," | Reportable Contract> " & CONCATENATEX(FILTERS('SWICCData'[WARD]),'SWICCData'[WARD],", ")) &
IF(ISFILTERED('SWICCData'[AreaCode])," | Reportable Contract> " & CONCATENATEX(FILTERS('SWICCData'[AreaCode]),'SWICCData'[AreaCode],", ")) &
IF(
NOT(ISFILTERED ( 'SWICCData'[datedischarged].[Year]) || ISFILTERED('SWICCData'[datedischarged].[Quarter]) || ISFILTERED('SWICCData'[datedischarged].[Month])) &&
NOT(ISFILTERED ( 'SWICCData'[Practice_Name])) &&
NOT(ISFILTERED ( 'SWICCData'[WARD])) &&
NOT(ISFILTERED ( 'SWICCData'[AreaCode]))
,"NO SELECTIONS APPLIED")
1 Reply
- Greg_Deckler
Community Champion
Anonymous Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.