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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Totals not showing with Measure

Hi Community,

 

Hope you can help again. I am struggling with the following: 

I have an entry table for sales with a Source No and an Item.

ItemDateSales Amount (LCY)Source
1111/1/2022150John Doe
1115/1/2022350John Doe
2225/1/20221150John Doe

 

Now I've created a measure to calculate the Sales Amount in USD (from USD).  This pulls from a seperate Exchange rate table.

Sales in USD = 
var _date = SELECTEDVALUE('Sales'[Date])
var _rate= CALCULATE(MAX('Ex Rate'[Rate]),FILTER('PS NL Ex Rate','Ex Rate'[Starting Date]<= _date && 'Ex Rate'[End Date]>_date))
var _turnover = CALCULATE(SUM('Sales'[Sales Amount (LCY)])*_rate)

RETURN
_turnover


This gives me some weird results however. For Source ADEMCZ the totals are not shown:

Koense_0-1663848787562.png

 

As you can see for some Source No. the totals are calculated. Please not that this matrix shows the totals for January 2022. 

If I look at the underlying lines I can see that the rate is applied correctly for each line but there is no total:

Koense_1-1663848870973.png

 

Please let me know any suggestions, I've been scratching my head around this for quite some time now. 

Kind Regards,

 

Koen

 

1 REPLY 1
HoangHugo
Solution Specialist
Solution Specialist

hi,

var _date = SELECTEDVALUE('Sales'[Date])

It will return Blank in your total row, so your total can not be calculate. Other total have result, i think due to you only have one transition in the items.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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