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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Power BI DAX formula

Hi Experts

 

i am trying to write last year's actual volume dax expression as below. However, it show total last year's data could not drill down to month and week. can anyone help? Thanks.

 

LY Vol =
VAR lyAct =
calculate (
    [Vol],
    ALL(dim_date),
    dim_date[fiscal_year_number]=FORMAT(MAX(dim_date[year])-1,"####")

)
return
lyAct
 
Layout:
Gg2023_0-1690044818354.png

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors