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
unitary
New Member

Best way to set up logical data for visualization efficiency

Hi

I have a data set which will get large fairly quickly.

The data has a date column, a string reference column, a couple of columns of floats and then 3 or more columns of logicals ('the logicals').

I will be 'slicing' visualizations across different date ranges and string references. With reference to visualization spead and simplicity my questions are:

1. Am I best using true/false data type or 1/0  (whole numbers in the MS world) when  summing/counting the 'true'/'1' values in the logicals?

2. I will need to combine the 3 logical columns to provide new/different column 'outcomes'.  Am i best doing this before loading into Power BI or is there no real overhead of doing the 'logical operations' e.g. OR(logical col 1, logical col 2) in Power BI? With reference back to Q1. Is this best done using a 0/1 'whole number' or true/false logical?

Thank you for your insights

Kind Regards

John

3 REPLIES 3
amitchandak
Super User
Super User

@unitary ,Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit,

It is something like this:

The slicing will work off the data and masterRef (and possibly in the future bucketed values of int1 and int2). The masterref has multiple parents and children but initially will just drive off the parents. The dates will be bucketed daily but will range between dates. The logicals (with values 1 and 0 only) will be summed to provide the 'y-axis data' for want of a better expression against the x-axis (dates initially and possibly int1 and int2 buckets in the future). The DervivedLogicals found from logic statements e.g. OR(Logical1,Logical2),   And(Not(logical1),Logical2).

Thank you John

ddmmyyyyMasterRefInt1Int2Logical1Logical2DerivedLogical1DerivedLogical1
01/11/2019U123458321011
01/11/2019U123451060101
01/11/2019U1234618191110
02/11/2019U123458350110
02/11/2019U1234711121000
02/11/2019U1234819991100
Anonymous
Not applicable

Hi @unitary,

You can unpivot your logic fields to attribute and value, then you can create a line chart with date as axis, attribute a legend, value on value field with aggregate mode 'sum'.

Unpivot columns (Power Query) 

Regards,

Xiaoxin Sheng

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.

Top Solution Authors