Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm trying to "summarize - last" based on a specific column, for example:
Index | Letter | Date
0 | A | 22/12
1 | B | 22/12
2 | A | 23/12
3 | B | 23/12
I want to "summarize - last" the "Date" column, based on the "Letter" column. However since "Index" is unique, all rows still show up in the table.
Is there a way for me to keep "Index" visible, but "hide" it when the Table is summarizing by date?
Solved! Go to Solution.
Hi @s4spencer ,
First create a dimensional date table as below:
Date table = VALUES('Table'[ Date])
Then create a measure as below:
_Index =
var _table=CALCULATETABLE(VALUES('Table'[Index ]),FILTER(ALL('Table'),'Table'[ Date] in FILTERS('Table'[ Date])))
Return
IF(NOT(ISFILTERED('Date table'[ Date])),MAX('Table'[Index ]),
IF(MAX('Table'[Index ]) in _table,MAX('Table'[Index ]),BLANK()))
Remember to create a relationship between fact table and date table:
Finally you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Hi @s4spencer ,
First create a dimensional date table as below:
Date table = VALUES('Table'[ Date])
Then create a measure as below:
_Index =
var _table=CALCULATETABLE(VALUES('Table'[Index ]),FILTER(ALL('Table'),'Table'[ Date] in FILTERS('Table'[ Date])))
Return
IF(NOT(ISFILTERED('Date table'[ Date])),MAX('Table'[Index ]),
IF(MAX('Table'[Index ]) in _table,MAX('Table'[Index ]),BLANK()))
Remember to create a relationship between fact table and date table:
Finally you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
To expand on this, I am aware of using calculated columns for this, like:
https://community.powerbi.com/t5/Desktop/How-to-find-latest-date-value-in-a-group/td-p/379104
Just hoping there's a cleaner way
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
119 | |
83 | |
47 | |
42 | |
34 |
User | Count |
---|---|
190 | |
79 | |
72 | |
52 | |
46 |