Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hello,
I am working on a system to check data on certificates that have been sent to customers to issue to students. My issue is that the certificates are sold in books of 25 and only the min and max number of each book is recorded in the sales records.
I am looking to create a column which pulls the Customer Reference Number for an individual certificate by examining the two columns (min value and max value) and determining when it is in between those values.
I'm not sure if I have explained this very well but I have attached a github link below to my dummy pbi file and dummy data.
https://github.com/A-S-1/Dummy-Data-and-PBI/find/main
Please let me know if you need more information and thanks for reading.
Solved! Go to Solution.
@A_S,
Try this calculated column in the Certificates table :
Customer Reference Number =
VAR vCertNum = Certificates[Certificate number]
VAR vTable =
FILTER (
Orders,
vCertNum >= Orders[Min Cert number]
&& vCertNum <= Orders[Max Cert number]
)
VAR vResult =
MAXX ( vTable, Orders[Customer Reference] )
RETURN
vResult
Proud to be a Super User!
Brilliant, thank you for your help.
@A_S,
Try this calculated column in the Certificates table :
Customer Reference Number =
VAR vCertNum = Certificates[Certificate number]
VAR vTable =
FILTER (
Orders,
vCertNum >= Orders[Min Cert number]
&& vCertNum <= Orders[Max Cert number]
)
VAR vResult =
MAXX ( vTable, Orders[Customer Reference] )
RETURN
vResult
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!