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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Use slicer from another

Really appreciated it if you can help with this.

I have table A that looks like this

 

CategoryTarget
A2
A12
B11
B23
C23
C11

 

I have created/generated another table "Deviation" from Table A

 

 

Variation = 
VAR MinNumber = FLOOR([X-3σ],.05)
VAR MaxNumber = CEILING([X+3σ],.05)
RETURN
    SELECTCOLUMNS (
        CALENDAR ( MinNumber, MaxNumber ),
        "Deviation", INT ( [Date] )
    )

 

 

 

My problem is - I can connect Table A to Table " Variation" so that I can slice by Category ( example: select only category A - should also change the [deviation] result - Is there a way I can connect my category in table A - i.e [daviation].

 

Thanks in advance

8 REPLIES 8
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Try including CATEGORY column from Table A to new Table B. (Add to your SELECTCOLUMNS statement)

Then create a relationship on this CATEGORY column between these 2 tables.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Thanks, .. I believe your suggestion will be :

VAR MinNumber = FLOOR([X-3σ],.05) VAR MaxNumber = CEILING([X+3σ],.05) RETURN SELECTCOLUMNS ( CALENDAR ( MinNumber, MaxNumber ), "Deviation", INT ( [Date] ), ('table A'[catogry] )

 

Anonymous
Not applicable

To make it more clear : You will get the same result [ daviation] if you make a selection. 

one.pngpartial.png

 

Hi @Anonymous ,

 

Can you tell me what's the logic behind the following part of your DAX:

SELECTCOLUMNS (
        CALENDAR ( MinNumber, MaxNumber ),
        "Deviation", INT ( [Date] )
    )

 

I don't understand why a new table is created. It's just measures and you could have done them in TABLE1 itself.

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi,
Thank you. This is like GENERATESERIES FUNCTION The idea is to create a bell-curved shape for each category ( by using other measures) - Now, we can create if we split the sample data by category, but the real data has a lot of categories ( will be tough to do that). So everything else will work except how we can generate by category

table2 = 
VAR MinNumber = FLOOR([X-3σ],.00001)
VAR MaxNumber = CEILING([X+3σ],.00001)
RETURN
    SELECTCOLUMNS (
        CALENDAR ( MinNumber, MaxNumber ),
        "X", INT ( [Date] )
    )  

Hi @Anonymous ,

 

Can't you do this in the existing TABLE1 as it uses measures from TABLE1?

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

If We Can we generate X without creating another table? I don't know that

Hi @Anonymous ,

 

Yes. 

Just try tagging the person in your response. 🙂

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors