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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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