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
majdkaid22
Helper V
Helper V

Volume by Volume range

Hi guys,

 

am trying to breakdown my MTD Volume into Volume range category that I created in a disconnected table 

 

Vol Range.PNG

and created the below measure 

Volume B2B by Range = CALCULATE([Volume B2B],FILTER('Xcore All tables','Xcore All tables'[USD_volume]
>=MIN('Volume Ranges'[Start])&&'Xcore All tables'[USD_volume]<MAX('Volume Ranges'[End])))

While am expecting when applying Month and account in row as category,that I will get for account x their volume in one of the Volume ranges. But am getting some accounts with Volumes in more than 1 Volume range.

 

ranges.PNG

 

 

What am looking to achieve is Total Volume traded to be sliced by Volume range. For example the above highlighted row, should be under the category of 500-1000M as the total volume is 597M

 

 

Am not sure what am missing to add in the measure formula? 

 

appreciate any help 

1 ACCEPTED SOLUTION
majdkaid22
Helper V
Helper V

Not sure if this is a workaround or the only way. 

 

The below got me the data I need

 

 

Dax Table

Monthly Volume = SUMMARIZE('Xcore All tables',Calander[Month],'DivMT4_Users'[LOGIN],'DiMT4_Users'[Client Name],'DiMT4_Users'[COUNTRY],"Monthly Volume",CALCULATE(SUM('Xcore All tables'[USD_volume]),'Master Accounts'[Is Volume Active]=TRUE(),'DiMT4_Users'[Is Di Account]=FALSE(),'Divisa MT4_Users'[Entity]="DCAM" || 'Divisa MT4_Users'[Entity]="DCUK"))

Measure

Volume B2B by Vol Range = CALCULATE(SUM('Monthly Volume'[Monthly Volume]),FILTER('Monthly Volume','Monthly Volume'[Monthly Volume]>=MIN('Volume Ranges'[Start])&&'Monthly Volume'[Monthly Volume]<MAX('Volume Ranges'[End])))

View solution in original post

2 REPLIES 2
majdkaid22
Helper V
Helper V

Not sure if this is a workaround or the only way. 

 

The below got me the data I need

 

 

Dax Table

Monthly Volume = SUMMARIZE('Xcore All tables',Calander[Month],'DivMT4_Users'[LOGIN],'DiMT4_Users'[Client Name],'DiMT4_Users'[COUNTRY],"Monthly Volume",CALCULATE(SUM('Xcore All tables'[USD_volume]),'Master Accounts'[Is Volume Active]=TRUE(),'DiMT4_Users'[Is Di Account]=FALSE(),'Divisa MT4_Users'[Entity]="DCAM" || 'Divisa MT4_Users'[Entity]="DCUK"))

Measure

Volume B2B by Vol Range = CALCULATE(SUM('Monthly Volume'[Monthly Volume]),FILTER('Monthly Volume','Monthly Volume'[Monthly Volume]>=MIN('Volume Ranges'[Start])&&'Monthly Volume'[Monthly Volume]<MAX('Volume Ranges'[End])))
Ashish_Mathur
Super User
Super User

Hi,

 

Share the workbook please.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.