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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mespiritu
Helper I
Helper I

Dax help or advice for visual

I want to set up a line graph or bar chart with 12 added custom columns (Jul23 to May24) and only use "1" values to create the visual but not sure how to set it up. 

mespiritu_0-1717544542762.png

 

 

3 REPLIES 3
mespiritu
Helper I
Helper I

I followed those steps above and that created duplicates to my data.  The 1 and 0 indicate if the client ID was enrolled in the specific month and my goal is to count just the "1's" for each of the columns and put it on a graph or chart.

mespiritu
Helper I
Helper I

Hi to answer your question above - What does the "1" mean - it indicates that the client was enrolled in the month of the column (Jul23 - 1 = enrolled, 0 = not enrolled)

Anonymous
Not applicable

Hi @mespiritu 

 

What does the meaning of only use "1" values to create the visual?

Maybe you can use COUNT() function to get the number of the "1" in one day.

Here for your reference:

First of all, I create a set of sample:

vzhengdxumsft_0-1717554103059.png

In power query, Transform > Select all the columns and click the Unpivot Columns:

vzhengdxumsft_1-1717554193938.png

Close & Apply:

vzhengdxumsft_2-1717554264836.png

The result is as follow:

vzhengdxumsft_3-1717554319435.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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