The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello Power BI Community,
I'm facing an issue with a DAX measure in my Power BI report, and I'd greatly appreciate your assistance.
I have a table that includes a "Purchase" column and a "Business Unit" column. I'm trying to calculate a measure called "Purchase In Core" that takes the "Purchase" value and provides the result based on certain conditions. I've used the following DAX formula for this:
DAXCopy code
Purchase In Core = VAR CurrentSales = [Purchase] / 10 VAR Result = SWITCH ( TRUE(), CurrentSales >= 10000000, ROUND ( DIVIDE ( CurrentSales, 1000000 ), 2 ) & " Crores", CurrentSales >= 100000, ROUND ( DIVIDE ( CurrentSales, 100000 ), 2 ) & " Lakhs" ) RETURN Result
However, I've encountered issues when trying to display these results in my visualizations. It's not showing the values as expected. Each business unit has different values, and I want the "Purchase In Core" values to be calculated respecting the values in the "Business Unit" column.
I'm seeking guidance on how to modify the DAX formula or set up my visualizations to achieve the desired results. Any help or insights on how to resolve this issue would be highly appreciated.
Thank you for your assistance.
We want to help you but your description is too vaugue. Please write it again clearly.
Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That would be crazy. 😀
Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.
Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.
Remember not to share private data ... we don't want you to get into trouble. 😧
Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
You will get a quick response if you put time, care and effort into writing clear problem descriptions.
Vaugue descriptions can waste your time and ourtime.
Look foward to helping you when the above information is forthcoming