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
Anonymous
Not applicable

Add scale filter (million/thousand)

Hi,

 

Is it possible to create a slicer that can filter through millions and thousands? I divide my metrics by millions and thousands, only now I do not know how I can make this slicer or another way for the user to choose what they want to see values in millions or thousands.

 

Best regards

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, you can create a disconnected table with this 2 rows : MIlions and Thousands and use it in a slicer.

 

And can you use this measure

Measure =
SWITCH (
    SELECTEDVALUE ( Units[Metric Unit] ),
    "Millions", DIVIDE ( SUM ( Table1[Value] ), 1000000 ),
    "Thousands", DIVIDE ( SUM ( Table1[Value] ), 1000 )
)

 

Regards

 

Victor




Lima - Peru

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, you can create a disconnected table with this 2 rows : MIlions and Thousands and use it in a slicer.

 

And can you use this measure

Measure =
SWITCH (
    SELECTEDVALUE ( Units[Metric Unit] ),
    "Millions", DIVIDE ( SUM ( Table1[Value] ), 1000000 ),
    "Thousands", DIVIDE ( SUM ( Table1[Value] ), 1000 )
)

 

Regards

 

Victor




Lima - Peru
Anonymous
Not applicable

@Vvelarde

 

Hi, sorry to bother, but it is possible to add one more field. I want "A" as absolute value, "K" as thousands and "M" as millions. The Switch function only accepts two parameters

 

Best regards. 

@Anonymous

 

Switch accept more than 2 parameters.

 

Review this link.

 

https://msdn.microsoft.com/en-us/query-bi/dax/switch-function-dax

 

Regards

 

Victor

 

 




Lima - Peru
Anonymous
Not applicable

@Vvelarde 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.