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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

missing calculation in measure with IF statement

Hello,

when I create a measurement with IF statement , I can only see one condition total , but I can not see other condition total. 

I mean I can see total number of Spikes but I can not see total number of Non-Spikes .

Thank you in advance

Regards

Baris 

 

Baris2836_1-1714120349276.png

 

 

 

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Change the measure "Spike M." into a calculated column, and then you can put it into the table visual and show both "Spike" and "Non":

vjunyantmsft_0-1714369613081.png

vjunyantmsft_1-1714369626041.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi v-junyant-msf

Actually I know change to column is the solution. But I do not want to make any Vlook up to get together the datas in one file. 

neverthless Thank  you very much. 

Regards

Baris  

Anonymous
Not applicable

Hi Wilson,

Actually I'd like to see number of spike and non spike orders in one measure which is impossible as you said. 

so is there any way to see these 2 kind of orders ? 

Thank you

Baris  

Wilson_
Super User
Super User

Hi Baris,

 

Are you expecting one measure to return two values in two different records? If so, that's impossible.

 

I also don't believe your circled table is actually doing what you expect right now. I think those would just be the total count of all ORDER_NO and not interacting with your Spike M. measure at all. (Hard to know for sure just looking at the screenshot.)


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.