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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
kressb
Helper V
Helper V

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

@kressb , 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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors