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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
graceste
Frequent Visitor

sum of a measure is false

Hallo, I've been struggling with this thema for a while, 

would appreciate any help,

the measure returns value that i've expected (last available), but the sum is false

Measure = CALCULATE(sum(fValue[PR Value]);FILTER(ALLEXCEPT(fValue;'Prognose for Day');fValue[data from]=max('Prognose for Day'[for Date])))

 

pbix unten

https://www.dropbox.com/s/wm7klycl3e0od6r/TEST%20DayValue.pbix?dl=0

 

regards

grace

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@graceste,

Create a new measure using DAX below.

Measure 3 = IF(COUNTROWS(VALUES('Prognose for Day'[for Date]))=1,[Measure],SUMX(VALUES('Prognose for Day'[for Date]),[Measure]))

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@graceste,

Create a new measure using DAX below.

Measure 3 = IF(COUNTROWS(VALUES('Prognose for Day'[for Date]))=1,[Measure],SUMX(VALUES('Prognose for Day'[for Date]),[Measure]))

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

Measure3 works perfekt, I have changed it only a littele bit

 

Measure 4 = if(COUNTROWS(VALUES('Prognose for Day'[for Date]))=1;[Measure 2];SUMX(VALUES('Prognose for Day'[for Date]);[Measure 2]))

 

where Measure 2 is

Measure 2 = if(sum(fValue[PR Value])=BLANK();[Measure];sum(fValue[PR Value]))

 

Thanks again 

Best regards

grace

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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