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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mcornfield
Helper III
Helper III

DAX EVALUATE SUMMARIZECOLUMNS Week Start Date

I am using  EVALUATE SUMMARIZECOLUMNS to pull in only the needed columns from a Tabular Server as its to much Data. 

Pulling in Date makes the Table way to large so i would like to pull it or group it by Week Start date. I used this formula to create the Column in Power BI (Data[Date] – WEEKDAY(Data[Date],2) + 1) But i don't know how to get this to work with EVALUATE SUMMARIZECOLUMNS. Please see my Query below:

 

EVALUATE
SUMMARIZECOLUMNS(
'Companies'[CompanyID], 
'Customers'[CustomerKey],
'Houses'[HousesKey],
'Products'[ProductKey],
'TransactionTypes'[TransactionTypeName],
'Dates'[Date],
FILTER('Dates','Dates'[Year]>2018),
"Revenue Net", SUM('Transactions'[RevenueNet]),
"Gross Profit", SUM('Transactions'[GrossProfit2]),

)

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mcornfield, agréguelo como medida e intente

Evaluar
COLUMNAS RESUMIDAS(
'Companies' [CompanyID],
'Customers'[CustomerKey],
'Houses'[HousesKey],
'Products'[ProductKey],
'TransactionTypes'[TransactionTypeName],
'Fechas'[Fecha],
FILTER('Dates','Dates'[Year]>2018),
"Revenue Net", SUM('Transactions'[RevenueNet]),
"Gross Profit", SUM('Transactions'[GrossProfit2]),
"Week End", max('Dates'[Date]) – WEEKDAY(max('Dates'[Date]),2) + 1
)

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi, @mcornfield 

Sorry, I don’t know what you want to calculate with Data [Date] – WEEKDAY(Data [Date], 2) + 1 ?
Can you show your expected result in excel?


Best Regards,
Community Support Team _ Eason


mcornfield
Helper III
Helper III

What if i want all week Ending Dates? This only shows 12/28 cause of Max i think

 

amitchandak
Super User
Super User

@mcornfield, agréguelo como medida e intente

Evaluar
COLUMNAS RESUMIDAS(
'Companies' [CompanyID],
'Customers'[CustomerKey],
'Houses'[HousesKey],
'Products'[ProductKey],
'TransactionTypes'[TransactionTypeName],
'Fechas'[Fecha],
FILTER('Dates','Dates'[Year]>2018),
"Revenue Net", SUM('Transactions'[RevenueNet]),
"Gross Profit", SUM('Transactions'[GrossProfit2]),
"Week End", max('Dates'[Date]) – WEEKDAY(max('Dates'[Date]),2) + 1
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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