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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
kunal_mehta1
Helper I
Helper I

Few Dax Queries

Hello All,
I have a visual which is almost done, but stuck on the last step.
I have a data set which has project numbers which consists of C and O numbers which has different values of financials.
In the visual i have a slicer which consists of all the project numbers which start with C. The format of project numbers in the data set is C#### and O####, which has same last 4 digits to the C number. What i want in the visual is when i select a C Number in the slicer, (refer to the visual) i want it to automatically show the O number actual O# and Forecast O# fields based on the C number selected. I also want the Project O# slicer to automatically have a O number if the last 4 digits of C number selected has the O number with same last 4 digits. I hope it makes sense...i have attached a dummy sample of visual and also the data set available.O Project.PNG

5 REPLIES 5
Anonymous
Not applicable

Hi 

Hello

 

Anonymous
Not applicable

Hi @kunal_mehta1 

I don't quite understand, what exactly do your actual O# fields and Forecast O# fields need to display? Do you want to display the comparison column, can you provide some examples of the desired results?  

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,
This is the data set i have, i have sample data of current data set and the to be data set i want which would solve my problem.
Hope this makes sense @Anonymous .
Please let me know if you need any further clarification.
Thanks.

 

DATA SET O PROJ.PNG

Also @Anonymous , the project O is the calculated column. I can't use the Query editor to merge them. I want a dax which would help me with, if the O number from the project column is equal to O number in Project O column, i want the selected columns from the O number Project - Row to the C number Project - row.
Thanks.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.