The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Power BI Community,
I need some help with the dynamic grouping of data based on slicer selection.
I am using the week_end_date as slicer and I am showing the card of response yes and no by month year.
For example : if week_end_date 1/15/2022 is selected in slicer, then the yes response should take all the yes for that month year(1/2022) and it should be yes = 25+12 = 37, no = 33+6 = 39.
I would appreciate any help on this.
@Greg_Deckler @tamerj1 @amitchandak @MFelix
Solved! Go to Solution.
Hi Deepak,
You can try with below DAX
result =
Var selectedweekendMonth = EOMONTH(SELECTEDVALUE(Week_End_Date),-1)+1
Retrun CALCULATE(COUNTROWS(RESPONSES),CALANDER[MONTH] = selectedweekendMonth , RESPONSE = "Yes")
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
Hi,
Good to hear, then please select as solution 🙂
Hi Deepak,
You can try with below DAX
result =
Var selectedweekendMonth = EOMONTH(SELECTEDVALUE(Week_End_Date),-1)+1
Retrun CALCULATE(COUNTROWS(RESPONSES),CALANDER[MONTH] = selectedweekendMonth , RESPONSE = "Yes")
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
User | Count |
---|---|
81 | |
80 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |