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 All
Hoping you can help me
please
i have some a dax code that give me the maxx code which i put in a card
max_val = maxx(dimtable[date],[%Handled])
i neee to also get the date the max_val is but cant seem to figure out how i get the corresponding date
Solved! Go to Solution.
@Mahmed1 Try:
max_val_date =
VAR __maxVal = [max_val]
VAR __Table = FILTER(ALL('dimtable'), [%Handled] = __maxVal)
VAR __Result = MAXX(__Table,[date])
RETURN
__Result
@Greg_Deckler Thank you - ill give that a go
i was trying to find a way of getting a table from selected visual
thank you once again
@Mahmed1 Try:
max_val_date =
VAR __maxVal = [max_val]
VAR __Table = FILTER(ALL('dimtable'), [%Handled] = __maxVal)
VAR __Result = MAXX(__Table,[date])
RETURN
__Result
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |