Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I have the following table which I copied from df_Bill_Flexcab and using the formula:
Can you assist me with the formula please? Thank you!
Solved! Go to Solution.
Hi @Anonymous ,
According to your description and screenshot , the Table is summarized by original table, so I'd suggest you add ADDCOLUMNS() to your DAX syntax like this:
Table =
ADDCOLUMNS (
SUMMARIZE (
df_BillHist_Flexcab,
df_BillHist_Flexcab[CIDN],
df_BillHist_Flexcab[Service_Number]
),
"Flag",
VAR _count =
CALCULATE (
DISTINCTCOUNT ( df_BillHist_Flexcab[Service_Number] ),
ALLEXCEPT ( df_BillHist_Flexcab, df_BillHist_Flexcab[CIDN] )
) + 0
RETURN
IF ( _count < 10, "Less than 10 services", ">10 services" )
)
The final output is shown below:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description and screenshot , the Table is summarized by original table, so I'd suggest you add ADDCOLUMNS() to your DAX syntax like this:
Table =
ADDCOLUMNS (
SUMMARIZE (
df_BillHist_Flexcab,
df_BillHist_Flexcab[CIDN],
df_BillHist_Flexcab[Service_Number]
),
"Flag",
VAR _count =
CALCULATE (
DISTINCTCOUNT ( df_BillHist_Flexcab[Service_Number] ),
ALLEXCEPT ( df_BillHist_Flexcab, df_BillHist_Flexcab[CIDN] )
) + 0
RETURN
IF ( _count < 10, "Less than 10 services", ">10 services" )
)
The final output is shown below:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try:
Count of Service number = CALCULATE(COUNT(table[service number]), ALLEXCEPT(Table, Table [CIDN]))
and then
Group = SWITCH(TRUE(),
[Count of service number] >= 10, ">10 services",
"Less than 10 services")
Proud to be a Super User!
Paul on Linkedin.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.