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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kolumam
Post Prodigy
Post Prodigy

Measure is not showing total value

This is my formula

 

Jan 2020 measure = 
var a = IF(MONTH(MAX(Operation[Budget 2020 Start Date]))<=1, 31*VALUE(Operation[Daily Budget measure]), BLANK())
RETURN
IF(YEAR(MAX(Operation[First_COD__c]))<>2020,
a,
IF(MONTH(MAX(Operation[Budget 2020 Start Date]))<=1, IF(MONTH(MAX(Operation[Budget 2020 Start Date]))=1,DATEDIFF(MAX(Operation[Budget 2020 Start Date])-1,DATE(2020,1,31),DAY)*VALUE(Operation[Daily Budget measure]), a)))

 

The above measure is not showing any total as seen below. How do I fix it?

 
 

 

 

 

 

 

 

 

 

 

@parry2k @mahoney19  @parry2k @az38 @jdbuchanan71 @mahoneypat @edhans @harshnathani @v-kellya-msft @MFelix @Ashish_Mathur @BA_Pete @ryan_mayu @kbuckvol @Alexander76877 @Petazo @Mariusz @TomMartens @Greg_Deckler @tjd @Sean @mikstra @AllisonKennedy @EricHulshof @briandpeterson @USG_Phil @vpatel55 @mwegener @v-piga-msft @tex628 @sturlaws @Vvelarde @CheenuSing @MarcelBeug @Zubair_Muhammad @v-piga-msft @danextian @MattAL @MattAllington @roalexan @Alexander76877 @kgc 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Kolumam ,

 

Can you provide some sample data? It will be very helpful to me.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Kolumam , Try like

var a = IF(MONTH(MAX(Operation[Budget 2020 Start Date]))<=1, SUMX(VALUES(Operation),31*Operation[Daily Budget measure]), BLANK())
RETURN
SUMX(VALUES(Operation) ,IF(YEAR(MAX(Operation[First_COD__c]))<>2020,
a,
IF(MONTH(MAX(Operation[Budget 2020 Start Date]))<=1, IF(MONTH(MAX(Operation[Budget 2020 Start Date]))=1,DATEDIFF(MAX(Operation[Budget 2020 Start Date])-1,DATE(2020,1,31),DAY)*SUMX(VALUES(Operation),Operation[Daily Budget measure]), a))))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

The solution didn't work. Still no total.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors