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! Request now

Reply
lardo5150
Microsoft Employee
Microsoft Employee

Checkbox is not working as expected - Values are being added up

I am pulling some data from SPO that looks like the example below.

My rows are the working hours in CST, so 6 is 6am, 7 is 7am..........

The columns are each day of the week, Sunday through Saturday.

There are two columns for each day.

Use Monday as an example.

The MondayQ column shows how many people are in queue during that hour of the day.

The MondayS column shows how many people are staffed during that hour of the day.

lardo5150_0-1724524582147.png

I have impoted this data into PBi, and changed the columns to whole numbers like this:

lardo5150_1-1724524620110.png

I created a chart, that will show both the Q and S for each hour of that specifc day.

lardo5150_2-1724524717656.png

I have hours and Monday in, and it is working.

lardo5150_4-1724524962086.png

 

This works perfect.

I want to be able to select the day of the week, and it will input on the Yaxis the Qday and SDay, depeding on what we check.

I created a new table:

 

DaysOfWeek = DATATABLE(
    "Day", STRING,
    {
        {"Sunday"},
        {"Monday"},
        {"Tuesday"},
        {"Wednesday"},
        {"Thursday"},
        {"Friday"},
        {"Saturday"}
    }
)

 

lardo5150_3-1724524841625.png

As a test, I started with Monday.

I created two measures:

 

vMondayQ = SUM('MainTable'[MondayQ])
vMondayS = SUM('MainTable'[MondayS])

I then created a combined measure.

 

CombinedValue = IF(
    SELECTEDVALUE(DaysOfWeek[Day]) = "Monday",
    [vMondayQ] + [vMondayS],
    BLANK()
)

 

 I then removed the two Mondays from the Y-axis and input the Combinedvalue measure.

lardo5150_5-1724525951018.png

 

The problem is it is summing the two values now, instead of showing each one like the example above.

lardo5150_6-1724525993056.png

 

What is the proper syntax to show the two values independantly like I did above?

Or do I have to go at this a different way?

 

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi @lardo5150 

Split the combined measure into 2 and use them in the y axis.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!!

View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hi @lardo5150 

Split the combined measure into 2 and use them in the y axis.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!!

This was it, thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors