Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Using the GroupBy Function for a changing, but specific date in another table?

Hello,
Can you use "Group By" Function for a specific date?

Ex, I have table like this:

DataStructure.JPG

I used GroupBy to get 1 Line, Per Date, Per Person:

GroupBy.JPG

Now I want to have a GroupBy Table just like the above, but for only the date that matches a date in a 2nd Table.

Ex: Table2:

Table2.JPG
GroupBy with Table2[Date]:

GroupBy.Table2Date.JPG

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , you need to filter all measure using

https://docs.microsoft.com/en-us/dax/treatas-function

 

or measures like

 

new Number = Calculate([Number], filter(Date, Date[date] in values(Table2[Date])))

 

new Avg no Number MTD= Calculate([Avg no Number MTD], filter(Date, Date[date] in values(Table2[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I use the "GroupBy" Function in PowerQuery.. there doesn't seem to be a way to use formulas?
there's just drop downs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.