Skip to main content

Create Summarize table

Problem

In this scenario, the requirement is to create a table based on the following fields:

  • Part Number
  • Lemon Score
  • Lemon Score Category
  • Month-Year

Here, both Lemon Score and Lemon Score Category are measures, not columns.


Solution

Since measures return scalar values and cannot be directly used for grouping or categorization in a table, we need to create a summarized table that includes the necessary dimensions and calculated measures. This can be achieved using the SUMMARIZECOLUMNS function in DAX.

Here’s how you can create the summarized table:

DAX

SummarizeTable =
SUMMARIZECOLUMNS (
'Part Daily Details'[Part Number],
CalendarTable[Month-Year],
"Lemon Score", [Lemon Score],
"Category", [Lemon Score Category]
)

This DAX expression creates a new table that includes:

  • Each unique Part Number
  • Corresponding Month-Year from the calendar table
  • The calculated Lemon Score measure
  • The derived Lemon Score Category measure

This approach allows you to effectively categorize and analyze the Lemon Score data across different parts and time periods.

Comments

Popular posts from this blog

Convex Lens Vs Concave Lens

What is a Lens A lens is a transparent object that transmits light across it, and its working principle depends on the   law of refraction (Snell’s law) . Applications: Concave Lens help with Far-Sight Convex Lens help with Near-Sight

Herbal Plants

Herbal plants to grow in home Different types of keerai ----- http://www.indiandietrecipes.com/2016/03/pictures-of-various-types-of-greens-or.html Pirandai ----good for bone joins---- https://youtu.be/k2DGubyXLAE Valarai Keerai Benifits ----- https://youtu.be/33HIfLJKTqA Sesma seeds ---- https://easyayurveda.com/2011/02/24/sesame-and-sesame-oil-benefits-total-ayurveda-details/

What is Verbal and Non-Verbal communication

TYPES OF COMMUNICATIONS: