The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I need to display the selected age in my report. I've tried these 2 options, however this always shows only the min and max values from the table. So for example when I select age 14 - 24 and apply many other filters, these numbers will change picking the mi and max value from the table, rather than displaying what the user picked in the filter.
Solved! Go to Solution.
I managed to solve it myself 🙂
VAR MinAge = CALCULATE( MIN('Table'[Age]), ALLSELECTED('Table') ) VAR MaxAge = CALCULATE( MAX('Table'[Age]), ALLSELECTED('Table') ) RETURN IF( ISFILTERED('Table'[Age]), "| Age: " & MinAge & " - " & MaxAge, BLANK() )
I managed to solve it myself 🙂
VAR MinAge = CALCULATE( MIN('Table'[Age]), ALLSELECTED('Table') ) VAR MaxAge = CALCULATE( MAX('Table'[Age]), ALLSELECTED('Table') ) RETURN IF( ISFILTERED('Table'[Age]), "| Age: " & MinAge & " - " & MaxAge, BLANK() )
Hi @WOLFIE,
Could you share a simple pbix with some date so I can take a look?
Proud to be a Super User!