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
maserr
Helper IV
Helper IV

Filtering values in a a calculated table

Dear all,

 

I have several measures done in SSAS. I have put these measures in a calculated table in SSAS to be able to use them in the scroller object in Power BI. What I find when using this calculated table with the scroller is that the values shown on the scroller are absolute and if I apply any date filter with a slicer the scroller keeps showing the same data. Of course, I would like to see the same information I can see using a card but on the scroller, the fact is I want several measures on the scroller so I have created the calculated table. I would like to see the value for the last date.

 

When I use the LASNONBLANK on SSAS the table has no error but I cannot see values.

 

Thanks in advance,

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i create a sample to test:

Here is my test table in SSAS:

25.PNG

Then please try this measure in SSAS:

Last Date Value:=CALCULATE(SUM(Sales[Sales]),FILTER(Sales,Sales[Date]=MAXX(ALLSELECTED(Sales),Sales[Date])))

It shows the last date sales:

26.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

 

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i create a sample to test:

Here is my test table in SSAS:

25.PNG

Then please try this measure in SSAS:

Last Date Value:=CALCULATE(SUM(Sales[Sales]),FILTER(Sales,Sales[Date]=MAXX(ALLSELECTED(Sales),Sales[Date])))

It shows the last date sales:

26.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

 

Greg_Deckler
Super User
Super User

Sorry, scroller is not computing with me. Are you referring to a numeric slicer? Are you missing a relationship?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Dear Greg,

The scroller is a visual object. As I have tried to explain, I can obtain the value I wish using a simple card or any object but not when using the calculated table and the scroller.

Thanks

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.