Forum Discussion

thampton's avatar
thampton
Icon for Helper III rankHelper III
7 years ago

DAX HELP - Summarize Table within SSAS

I have a tabular model built within SSAS that i am bringing into Power Bi. Currently i have a calendar table that includes a field for Business Day (1 for M-F, 0 for Sat/Sun). I also have a table with order data. 

 

To create a summary table i am using the SUMMARIZE Dax command, following the "Name1",Expression1,"Name2", Expression2 format.

 

I would like to calculate a few projections using business days but i am having trouble creating this in an expression. What i would like it to be is below:

 

"Yearly Projection", ((Total Orders / Business Days YTD) * Business Days in 2019)

"Monthly Projecton".(Total Orders MTD / Business Days MTD)* Total Business Days in Current Month)

 

Can anyone help with this DAX?

 

No RepliesBe the first to reply