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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
soumitra_mukh
New Member

DAX command not returning a value

Hi I am not able to get any value retuned for the dax command below 
I am trying to calculate the last qtr cart adds based on selection however since my data has duplicates i have to summarise the data can some one please help me undersatdn the error with the formula 
 
I am fairly new to the community and this is my firt post so please bear with me in case i have missed anything
 
LQ_cartadd = Var _SelectedQtr=SELECTEDVALUE(DM_campaign_processed[Index]) Return CALCULATE(sumx(SUMMARIZE(
DM_campaign_processed,
DM_campaign_processed[JumpID],
DM_campaign_processed[Date],DM_campaign_processed[Cartadd]
),
DM_campaign_processed[Cartadd]),FILTER(DM_campaign_processed,DM_campaign_processed[Fiscal_YearQtr]=_SelectedQtr-1)
)
1 REPLY 1
Fowmy
Super User
Super User

@soumitra_mukh 

I am not sure you have a dates table in your model, if not add a dates table and create relationships then use PREVIOUSQUARTER function to get the correct values.

If you need further help, add some data to an Excel file along with expected results and share here using Google Drive or One Drive link.



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.