简体   繁体   中英

power BI data to display

I have tried all I c PowerBi issue an and cannot seem to make it work. Please I need help. I am trying to get the data for previous qtr and last 2 qtrs but cannot get it right. see formula below. but it gives me total. thanks

Last 1 qtr = CALCULATE([Total Sales], DATEADD(DimDate[FullDateAlternateKey], -1, QUARTER))
Last 2 qtr = CALCULATE([Total Sales] , DATEADD(DimDate[FullDateAlternateKey], -2, QUARTER))

Power BI has a built in function to calculate aggregated values for Previous Quarter with below syntax-

PREVIOUSQUARTER(<dates>)

For more details, your can check Microsoft's official documentation Here

Some additional help you will get Here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM