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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mich32
Frequent Visitor

How to get value to show for one row

Hi there,
I would like to get the mesaure that I created to only be show for Indicator A only (in BOLD).  As you can see the measure repeats for the other indicators, but this is not the result I need (and I put a strikethrough through them).  I provided the DAX that I used to get my total count for the last 12 months.  Thank you community!

 

IndicatorPts AvailExcel IsCount for last 12 months
A  7191
B1≨ 1.007191
C207191
D3≨ 20.07191
E407191
F5≩ 807191
G6≩ 957191
H707191
 
Count for last 12 months =

CALCULATE(COUNTA('Result Table'[Tickets #]),
DATESINPERIOD (
'Result Table'[REPORTDATE],           -- returns period from date column
MAX('Result Table'[REPORTDATE]), -- starting from MAX date
-364,                                                -- shifting it back 364 intervals
DAY                                                 -- each interval being a month
)
)



1 ACCEPTED SOLUTION
mich32
Frequent Visitor

For the community's knowledge, I solved this by selecting Show Items with No Data in the Indicator column on the Visualization pane.

View solution in original post

3 REPLIES 3
mich32
Frequent Visitor

For the community's knowledge, I solved this by selecting Show Items with No Data in the Indicator column on the Visualization pane.

v-stephen-msft
Community Support
Community Support

Hi @mich32 ,

 

Try adding an IF judgment statement. For example, if you want a measure,

IF(MAX('TableName'[Indicator]) = "A", ..., ...)

If you want a calculated column,

IF('TableName'[Indicator] = "A", ..., ...)

 

 

Best Regards,

Stephen Tao

 

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

 

 

Ashish_Mathur
Super User
Super User

Hi,

Your question is not at all clear.  Share some data, describe the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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