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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Cocrodile
Helper I
Helper I

Why measure ?

Why does a given measurement give no result?

I'm trying to calculate a measure that gives me a result of 1 when that measure is empty.

Week_blank = if([Measure]=BLANK(),1,0)

The result does not give me the total

Cocrodile_0-1659014939979.png

I want total = 5

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Cocrodile you need to wrap your measure with SUMX.

MEASURE = 
SUMX(
VALUES('Table'[The column you put in your table visual]),
[Week_blank]
)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

@Cocrodile you need to wrap your measure with SUMX.

MEASURE = 
SUMX(
VALUES('Table'[The column you put in your table visual]),
[Week_blank]
)


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.